From 802578bd8210d2119eb70fb526bfadb49a16c268 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sun, 23 May 2021 13:50:57 +0000 Subject: [PATCH] remove extra locations --- config/default.conf | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/config/default.conf b/config/default.conf index 3561da4..aa946a6 100644 --- a/config/default.conf +++ b/config/default.conf @@ -4,10 +4,8 @@ server { server_name localhost; resolver 127.0.0.11 valid=30s; set $theia theia; - set $etherpad etherpad; - set $dokuwiki dokuwiki; - #charset koi8-r; - #access_log /var/log/nginx/host.access.log main; +# set $etherpad etherpad; + client_max_body_size 10M; location / { # root /usr/share/nginx/html; @@ -21,25 +19,18 @@ server { proxy_set_header Connection "upgrade"; } - location /dokuwiki { - rewrite /dokuwiki/(.*) /$1 break; - rewrite ^/dokuwiki$ /dokuwiki/ permanent; - proxy_pass http://$dokuwiki:8080; - proxy_redirect / /dokuwiki/; - proxy_set_header Host $host; - proxy_buffering off; - } - location /etherpad { - rewrite /etherpad/(.*) /$1 break; - rewrite ^/etherpad$ /etherpad/ permanent; - proxy_pass http://$etherpad:9001; - proxy_redirect / /etherpad/; - proxy_set_header Host $host; - proxy_buffering off; - sub_filter /static/plugins/ /etherpad/static/plugins/; - sub_filter /etherpad/etherpad/static/plugins/ /etherpad/static/plugins/; - sub_filter_once off; - } + +# location /etherpad { +# rewrite /etherpad/(.*) /$1 break; +# rewrite ^/etherpad$ /etherpad/ permanent; +# proxy_pass http://$etherpad:9001; +# proxy_redirect / /etherpad/; +# proxy_set_header Host $host; +# proxy_buffering off; +# sub_filter /static/plugins/ /etherpad/static/plugins/; +# sub_filter /etherpad/etherpad/static/plugins/ /etherpad/static/plugins/; +# sub_filter_once off; +# } location /dev { rewrite_log on; rewrite /dev/(.*) /$1 break;