PeerTube/support/apache/peertube.conf

27 lines
826 B
Plaintext
Raw Normal View History

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