1
0
Fork 0
peertube/support/apache/peertube.conf

27 lines
826 B
Text
Raw Normal View History

2016-10-26 12:46:11 -04:00
<VirtualHost *:80>
ServerName peertube.example.org
2017-02-18 12:13:37 -05:00
CustomLog /var/log/apache2/peertube/peertube-access.log combined
2016-10-26 13:15:49 -04:00
ErrorLog /var/log/apache2/peertube/peertube-error.log
2016-10-26 12:46:11 -04:00
ProxyRequests Off
ProxyPreserveHost On
2016-10-26 13:15:49 -04:00
Timeout 900
2016-10-26 12:46:11 -04: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>