nginx conf
This commit is contained in:
parent
af2a3b36fe
commit
17258c7631
10
nginx.conf
10
nginx.conf
|
|
@ -6,15 +6,9 @@ server {
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype;
|
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype;
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|otf|xml|txt)$ {
|
|
||||||
root /usr/share/nginx/html/browser;
|
|
||||||
try_files $uri /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
root /usr/share/nginx/html;
|
||||||
proxy_set_header Host $http_host;
|
try_files $uri /index.html;
|
||||||
proxy_pass http://localhost:4000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#error_page 404 /404.html;
|
#error_page 404 /404.html;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue