PeerTube/support/apache/peertube.conf

27 lines
826 B
Plaintext
Raw Normal View History

2016-10-26 18:46:11 +02:00
<VirtualHost *:80>
ServerName peertube.example.org
2017-02-18 18:13:37 +01:00
CustomLog /var/log/apache2/peertube/peertube-access.log combined
2016-10-26 19:15:49 +02:00
ErrorLog /var/log/apache2/peertube/peertube-error.log
2016-10-26 18:46:11 +02:00
ProxyRequests Off
ProxyPreserveHost On
2016-10-26 19:15:49 +02:00
Timeout 900
2016-10-26 18:46:11 +02:00
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token, range"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS"
ProxyPass /tracker/socket "ws://localhost:9000/tracker/socket"
ProxyPassReverse /tracker/socket "ws://localhost:9000/tracker/socket"
ProxyPass / http://localhost:9000/
ProxyPassReverse / http://localhost:9000/
ProxyTimeout 1200
</VirtualHost>