aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/apache/peertube.conf
blob: 0ccd86069d3754b8b6b885352ab7a3caac826f7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>