add ams-builtin-token as server default token and refactor nginx.conf
This commit is contained in:
parent
ddac3a9871
commit
e142785a9d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ http:
|
|||
|
||||
tokens:
|
||||
- rdb-builtin-token
|
||||
- ams-builtin-token
|
||||
|
||||
redis:
|
||||
# as queue
|
||||
|
|
Loading…
Reference in New Issue