Up and running. How do I make it permanent? #563
Replies: 2 comments 8 replies
-
Hi there, thanks for the kind words! Some documentation is actually being worked on to point people in the direction of what they can do after Owncast is up and running in this PR: https://github.com/owncast/owncast.github.io/pull/25/files. So take a look at that and you should be able to get it running under systemd, as a real service. Unfortunately we don't have any documentation about using Apache as a reverse proxy, I think most people are using Caddy, Traefik, or nginx. But it looks like you'll want to do something like this: https://bendellar.com/apache-as-reverse-proxy-for-letsencrypt-free-https-certificates/. Maybe somebody else can chime in here if they've used Apache as a proxy. |
Beta Was this translation helpful? Give feedback.
-
I got everything (but the chat yet) to work with Apache as ReverseProxy. My config look a bit like this: <IfModule mod_ssl.c>
<VirtualHost MYIP:443 >
ServerName "EXAMPLE.COM"
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/ABC123
SSLCACertificateFile /opt/psa/var/certificates/ABC123
#Proxy
SSLProxyEngine On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
#extension letsencrypt begin
Alias /.well-known/acme-challenge "/var/www/MYPATH/.well-known/acme-challenge"
<Location /.well-known/acme-challenge/>
# Require all granted
Order Deny,Allow
Allow from all
Satisfy any
</Location>
<LocationMatch "^/.well-known/acme-challenge/(.*/|)\.">
# Require all denied
Order Allow,Deny
Deny from all
</LocationMatch>
#extension letsencrypt end
</VirtualHost>
</IfModule>
<VirtualHost MYIP:80 >
ServerName "EXAMPLE.COM"
UseCanonicalName Off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,QSA]
</IfModule>
</VirtualHost> The main obstacle was, that the owncast user wasn't permitted to access the full path to my owncast installation. I had to chmod 755 /var - maybe the manual should give a suggestion, where to install owncast. |
Beta Was this translation helpful? Give feedback.
-
Hej!
Thank you for this great project. I used to stream via Twitch. But my stream doesn't benefit from the trashy enviroment there. I get 99% of my viewers through my own invitations.
It's very easy to download and start owncast. But now it's only running with my terminal open, without https and on port 8080.
Beta Was this translation helpful? Give feedback.
All reactions