Apache configuration

pull/15/head
dada 2016-10-26 18:46:11 +02:00
parent d16a0ad851
commit 2ace56f8c3
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<VirtualHost *:80>
ServerName peertube.example.org
CustomLog /var/log/apache2/peertube/diaspote-access.log combined
ErrorLog /var/log/apache2/peertube/diaspote-error.log
ProxyRequests Off
ProxyPreserveHost On
Timeout 300
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>