1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update nginx.conf

This commit is contained in:
frju365 2017-07-05 12:35:39 +02:00 committed by GitHub
parent 51da5711b0
commit 184e84eef3

View file

@ -11,6 +11,11 @@ location / {
}
location ^~ /customize.dist/ {
# This is needed in order to prevent infinite recursion between /customize/ and the root
}
location = /api/config {
default_type text/javascript;
rewrite ^.*$ /customize/api/config break;
@ -25,7 +30,6 @@ location ^~ /customize/ {
try_files /customize/$uri /customize.dist/$uri;
}
## TODO fix in the code so that we don't need this
location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard)$ {
rewrite ^(.*)$ $1/ redirect;