diff --git a/etc/nginx.conf b/etc/nginx.conf index 97f59b47..a3228514 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -61,33 +61,13 @@ http { gzip_vary off; gzip_disable "MSIE [1-6]\."; - upstream n9e.rdb { - server 127.0.0.1:8000; - keepalive 60; - } - - upstream n9e.ams { - server 127.0.0.1:8000; - keepalive 60; - } - - upstream n9e.job { - server 127.0.0.1:8000; - keepalive 60; - } - - upstream n9e.monapi { - server 127.0.0.1:8000; - keepalive 60; - } - - upstream n9e.transfer { + upstream n9e.server { server 127.0.0.1:8000; keepalive 60; } upstream n9e.index { - server 127.0.0.1:8000; + server 127.0.0.1:8012; keepalive 60; } @@ -112,27 +92,27 @@ http { } location /api/rdb { - proxy_pass http://n9e.rdb; + proxy_pass http://n9e.server; } location /api/ams { - proxy_pass http://n9e.ams; + proxy_pass http://n9e.server; } location /api/job { - proxy_pass http://n9e.job; + proxy_pass http://n9e.server; } location /api/mon { - proxy_pass http://n9e.monapi; + proxy_pass http://n9e.server; } location /api/index { - proxy_pass http://n9e.index; + proxy_pass http://n9e.server; } location /api/transfer { - proxy_pass http://n9e.transfer; + proxy_pass http://n9e.server; } } diff --git a/etc/server.yml b/etc/server.yml index fbf1c4b9..dcb2643b 100644 --- a/etc/server.yml +++ b/etc/server.yml @@ -19,6 +19,7 @@ http: tokens: - rdb-builtin-token + - ams-builtin-token redis: # as queue