mirror of
https://github.com/YunoHost-Apps/mautic_ynh.git
synced 2024-09-03 19:36:26 +02:00
Update nginx.conf
This commit is contained in:
parent
36cb8cc74b
commit
135b7be12e
1 changed files with 2 additions and 7 deletions
|
@ -7,13 +7,8 @@ location __PATH__/ {
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
#try_files $uri /index.php$is_args$args;
|
|
||||||
|
|
||||||
rewrite ^__PATH__/(vendor|translations|build)/.* /index.php break;
|
rewrite ^__PATH__/(vendor|translations|build)/.* /index.php break;
|
||||||
|
|
||||||
#if (!-e $request_filename) {
|
|
||||||
# rewrite ^__PATH__/(.*)$ __PATH__/index.php?q=$1 last;
|
|
||||||
#}
|
|
||||||
|
|
||||||
try_files $uri $uri/ index.php;
|
try_files $uri $uri/ index.php;
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
|
@ -46,14 +41,14 @@ location __PATH__/ {
|
||||||
location = __PATH__/mtc.js {
|
location = __PATH__/mtc.js {
|
||||||
expires off;
|
expires off;
|
||||||
default_type "application/javascript";
|
default_type "application/javascript";
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
try_files $uri $uri/ __PATH__/index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Embedded forms
|
# Embedded forms
|
||||||
location = __PATH__/form/generate.js {
|
location = __PATH__/form/generate.js {
|
||||||
expires off;
|
expires off;
|
||||||
default_type "application/javascript";
|
default_type "application/javascript";
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
try_files $uri $uri/ __PATH__/index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
|
|
Loading…
Add table
Reference in a new issue