Change nginx config for work with asset emit
This commit is contained in:
parent
2f532533de
commit
c0f7335c7c
@ -114,6 +114,10 @@ server {
|
||||
try_files /plugins/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
location /doceditor {
|
||||
@ -128,6 +132,14 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/ {
|
||||
try_files /fonts/$basename /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /login {
|
||||
@ -142,6 +154,14 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/ {
|
||||
try_files /fonts/$basename /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /sockjs-node {
|
||||
|
Loading…
Reference in New Issue
Block a user