Apache configuration
authordada <dada@dadall.info>
Wed, 26 Oct 2016 16:46:11 +0000 (18:46 +0200)
committerdada <dada@dadall.info>
Wed, 26 Oct 2016 16:46:11 +0000 (18:46 +0200)
support/apache/peertube.conf [new file with mode: 0644]

diff --git a/support/apache/peertube.conf b/support/apache/peertube.conf
new file mode 100644 (file)
index 0000000..0ccd860
--- /dev/null
@@ -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>
+
+