„README.md“ ändern
This commit is contained in:
parent
6cedb5881d
commit
ba15b4c254
61
README.md
61
README.md
@ -102,4 +102,63 @@ Damit der MistServer von außen erreichbar ist, müssen die notwendigen Ports in
|
|||||||
- TCP 4242 - Konfigurations-Interface
|
- TCP 4242 - Konfigurations-Interface
|
||||||
- TCP 8080 - HTTP-Port für Streaming-Clients
|
- TCP 8080 - HTTP-Port für Streaming-Clients
|
||||||
|
|
||||||
Die Ports 4242 und 8080 müssen nicht freigegeben werden, wenn vorm dem MistServer noch ein anderer Wabserver (wie z.B. Apache) als ReverseProxy eingerichtet ist.
|
Die Ports 4242 und 8080 müssen nicht freigegeben werden, wenn vorm dem MistServer noch ein anderer Wabserver (wie z.B. Apache) als ReverseProxy eingerichtet ist.
|
||||||
|
|
||||||
|
Wir nutzen den Apache-Webserver mit folgenden Einstellungen (Servernamen als Beispiel):
|
||||||
|
|
||||||
|
```
|
||||||
|
<VirtualHost *:80>
|
||||||
|
|
||||||
|
ServerName video.domain.tld
|
||||||
|
|
||||||
|
SSLEngine off
|
||||||
|
|
||||||
|
<Location "/">
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
|
||||||
|
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
|
||||||
|
RewriteRule .* ws://localhost:8080%{REQUEST_URI} [P]
|
||||||
|
ProxyPreserveHost On
|
||||||
|
ProxyPass http://localhost:8080/
|
||||||
|
ProxyPassReverse http://localhost:8080/
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
<Location "/admin">
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:443>
|
||||||
|
|
||||||
|
ServerName video.domain.tld
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
|
||||||
|
SSLCertificateFile /etc/letsencrypt/live/domain.tld/cert.pem
|
||||||
|
SSLCertificateChainFile /etc/letsencrypt/live/domain.tld/chain.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem
|
||||||
|
|
||||||
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html/
|
||||||
|
|
||||||
|
<Location "/admin">
|
||||||
|
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
|
||||||
|
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
|
||||||
|
RewriteRule .* ws://localhost:4242%{REQUEST_URI} [P]
|
||||||
|
|
||||||
|
ProxyPass http://localhost:4242/
|
||||||
|
ProxyHTMLURLMap http://localhost:4242/
|
||||||
|
ProxyHTMLEnable On
|
||||||
|
ProxyHTMLURLMap / /
|
||||||
|
RequestHeader unset Accept-Encoding
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
CustomLog /var/log/apache2/video.domain.tld.log combined
|
||||||
|
ErrorLog /var/log/apache2/video.domain.tld.error.log
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user