2016-10-26 18:46:11 +02:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName peertube.example.org
|
|
|
|
|
2016-10-26 19:15:49 +02:00
|
|
|
CustomLog /var/log/apache2/peertube/perrtube-access.log combined
|
|
|
|
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>
|
|
|
|
|
|
|
|
|