nginx changes and invader init
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
error_log /var/log/nginx/mnml.nginx.log debug;
|
||||
error_log /var/log/mnml/nginx.log debug;
|
||||
|
||||
upstream mnml {
|
||||
upstream mnml_http {
|
||||
server 127.0.0.1:40000;
|
||||
}
|
||||
|
||||
upstream mnml_ws {
|
||||
server 127.0.0.1:40055;
|
||||
}
|
||||
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
@@ -14,7 +19,7 @@ server {
|
||||
location / {
|
||||
root /var/lib/mnml/public/dist;
|
||||
index index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
try_files $uri $uri/ index.html;
|
||||
}
|
||||
|
||||
location /imgs/ {
|
||||
@@ -23,7 +28,7 @@ server {
|
||||
}
|
||||
|
||||
location /api/ws {
|
||||
proxy_pass http://mnml;
|
||||
proxy_pass http://mnml_ws;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
@@ -31,7 +36,7 @@ server {
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://mnml;
|
||||
proxy_pass http://mnml_http;
|
||||
proxy_read_timeout 600s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user