diff options
author | Bigard Florian <florian.bigard@gmail.com> | 2016-10-26 20:16:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 20:16:18 +0200 |
commit | 84c4be6b7835ef2c72002046df171c23bde4462a (patch) | |
tree | d521c4e432ecae0855021eee04aa17f369904770 /support | |
parent | d16a0ad85174558388df721a9285aae71d83bc30 (diff) | |
parent | 9da2ec0de65d5c0d13ef658430665bf9c887aa9d (diff) | |
download | PeerTube-84c4be6b7835ef2c72002046df171c23bde4462a.tar.gz PeerTube-84c4be6b7835ef2c72002046df171c23bde4462a.tar.zst PeerTube-84c4be6b7835ef2c72002046df171c23bde4462a.zip |
Merge pull request #15 from dadall/master
Add 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..9265fbda6 --- /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/perrtube-access.log combined | ||
5 | ErrorLog /var/log/apache2/peertube/peertube-error.log | ||
6 | |||
7 | ProxyRequests Off | ||
8 | ProxyPreserveHost On | ||
9 | |||
10 | Timeout 900 | ||
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 | |||