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:
parent
9634cd227a
commit
65805929c9
1 changed files with 0 additions and 10 deletions
|
@ -11,11 +11,6 @@ location / {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /customize.dist/ {
|
|
||||||
# This is needed in order to prevent infinite recursion between /customize/ and the root
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
location = /api/config {
|
location = /api/config {
|
||||||
default_type text/javascript;
|
default_type text/javascript;
|
||||||
rewrite ^.*$ /customize/api/config break;
|
rewrite ^.*$ /customize/api/config break;
|
||||||
|
@ -25,11 +20,6 @@ if ($uri = /pad/inner.html) {
|
||||||
set $scriptSrc "'self' 'unsafe-eval' 'unsafe-inline'";
|
set $scriptSrc "'self' 'unsafe-eval' 'unsafe-inline'";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /customize/ {
|
|
||||||
rewrite ^/customize/(.*)$ $1 break;
|
|
||||||
try_files /customize/$uri /customize.dist/$uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
## TODO fix in the code so that we don't need this
|
## TODO fix in the code so that we don't need this
|
||||||
location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard)$ {
|
location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard)$ {
|
||||||
rewrite ^(.*)$ $1/ redirect;
|
rewrite ^(.*)$ $1/ redirect;
|
||||||
|
|
Loading…
Reference in a new issue