summaryrefslogtreecommitdiffstats
path: root/pad-proxy/templates/etherpad.nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'pad-proxy/templates/etherpad.nginx.conf')
-rw-r--r--pad-proxy/templates/etherpad.nginx.conf33
1 files changed, 0 insertions, 33 deletions
diff --git a/pad-proxy/templates/etherpad.nginx.conf b/pad-proxy/templates/etherpad.nginx.conf
deleted file mode 100644
index 92ba974..0000000
--- a/pad-proxy/templates/etherpad.nginx.conf
+++ /dev/null
@@ -1,33 +0,0 @@
-upstream etherpad_upstream {
- server 127.0.0.1:9001;
-}
-
-server {
- listen 80;
- server_name {{ etherpad_server_name }};
- access_log /var/log/nginx/{{ etherpad_server_name }}.access.log;
- location ~ ^/(locales/|locales.json|admin/|static/|pluginfw/|javascripts/|socket.io/|ep/|minified/|api/|ro/|error/|jserror/|favicon.ico|robots.txt) {
- proxy_buffering off;
- proxy_pass http://etherpad_upstream;
- }
- location /p/ {
- rewrite ^/p/(.*) /$1 redirect;
- }
- location ~ ^/$ {
- proxy_buffering off;
- proxy_pass http://etherpad_upstream;
- }
- location ~ ^/pad-lister($|\/.*) {
- proxy_buffering off;
- proxy_pass http://etherpad_upstream;
- }
- location / {
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_pass http://etherpad_upstream/p/;
- proxy_redirect / /p/;
- proxy_read_timeout 90;
- }
-}