1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2020-12-13 16:05:24 +01:00
parent db7676e19f
commit 3082df5c1b
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,23 +1,4 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
#sub_path_only rewrite ^__PATH__/locales/(.*) __PATH__/locales/$1 break;
#sub_path_only rewrite ^__PATH__/locales.json __PATH__/locales.json break;
#sub_path_only rewrite ^__PATH__/admin(.*) __PATH__/admin/$1 break;
#sub_path_only rewrite ^__PATH__/p/(.*) __PATH__/p/$1 break;
#sub_path_only rewrite ^__PATH__/static/(.*) __PATH__/static/$1 break;
#sub_path_only rewrite ^__PATH__/pluginfw/(.*) __PATH__/pluginfw/$1 break;
#sub_path_only rewrite ^__PATH__/javascripts/(.*) __PATH__/javascripts/$1 break;
#sub_path_only rewrite ^__PATH__/socket.io/(.*) __PATH__/socket.io/$1 break;
#sub_path_only rewrite ^__PATH__/ep/(.*) __PATH__/ep/$1 break;
#sub_path_only rewrite ^__PATH__/minified/(.*) __PATH__/minified/$1 break;
#sub_path_only rewrite ^__PATH__/api/(.*) __PATH__/api/$1 break;
#sub_path_only rewrite ^__PATH__/ro/(.*) __PATH__/ro/$1 break;
#sub_path_only rewrite ^__PATH__/error/(.*) __PATH__/error/$1 break;
#sub_path_only rewrite ^__PATH__/jserror(.*) __PATH__/jserror$1 break;
#sub_path_only rewrite ^__PATH__/redirect(.*) __PATH__/redirect$1 break;
#sub_path_only rewrite __PATH__/favicon.ico __PATH__/favicon.ico break;
#sub_path_only rewrite __PATH__/robots.txt __PATH__/robots.txt break;
#sub_path_only rewrite __PATH__/(.*) __PATH__/p/$1;
location __PATH__/ { location __PATH__/ {
# Force usage of https # Force usage of https
@ -25,8 +6,6 @@ location __PATH__/ {
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
} }
proxy_pass http://127.0.0.1:__PORT__/; proxy_pass http://127.0.0.1:__PORT__/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_pass_header Server; proxy_pass_header Server;