nginx conf
This commit is contained in:
parent
af2a3b36fe
commit
17258c7631
14
nginx.conf
14
nginx.conf
|
|
@ -6,15 +6,9 @@ server {
|
|||
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;
|
||||
|
||||
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 / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://localhost:4000;
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
|
@ -23,13 +17,13 @@ server {
|
|||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# deny access to hidden files like .git etc
|
||||
# concurs with nginx's one
|
||||
#
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue