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

27 lines
826 B
Plaintext
Raw Normal View History

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