diff options
author | dada <dada@dadall.info> | 2016-10-26 18:46:11 +0200 |
---|---|---|
committer | dada <dada@dadall.info> | 2016-10-26 18:46:11 +0200 |
commit | 2ace56f8c3e0dd586cba419c38ac5c40372a8b22 (patch) | |
tree | b28ed4c1542fc476501768b7e7ee493eea42797b /support | |
parent | d16a0ad85174558388df721a9285aae71d83bc30 (diff) | |
download | PeerTube-2ace56f8c3e0dd586cba419c38ac5c40372a8b22.tar.gz PeerTube-2ace56f8c3e0dd586cba419c38ac5c40372a8b22.tar.zst PeerTube-2ace56f8c3e0dd586cba419c38ac5c40372a8b22.zip |
Apache configuration
Diffstat (limited to 'support')
-rw-r--r-- | support/apache/peertube.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/support/apache/peertube.conf b/support/apache/peertube.conf new file mode 100644 index 000000000..0ccd86069 --- /dev/null +++ b/support/apache/peertube.conf | |||
@@ -0,0 +1,26 @@ | |||
1 | <VirtualHost *:80> | ||
2 | ServerName peertube.example.org | ||
3 | |||
4 | CustomLog /var/log/apache2/peertube/diaspote-access.log combined | ||
5 | ErrorLog /var/log/apache2/peertube/diaspote-error.log | ||
6 | |||
7 | ProxyRequests Off | ||
8 | ProxyPreserveHost On | ||
9 | |||
10 | Timeout 300 | ||
11 | |||
12 | Header set Access-Control-Allow-Origin "*" | ||
13 | Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token, range" | ||
14 | Header set Access-Control-Allow-Methods "POST, GET, OPTIONS" | ||
15 | |||
16 | ProxyPass /tracker/socket "ws://localhost:9000/tracker/socket" | ||
17 | ProxyPassReverse /tracker/socket "ws://localhost:9000/tracker/socket" | ||
18 | |||
19 | ProxyPass / http://localhost:9000/ | ||
20 | ProxyPassReverse / http://localhost:9000/ | ||
21 | |||
22 | ProxyTimeout 1200 | ||
23 | |||
24 | </VirtualHost> | ||
25 | |||
26 | |||