Skip to content

Commit

Permalink
add ams-builtin-token as server default token and refactor nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Apr 24, 2021
1 parent ddac3a9 commit e142785
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
36 changes: 8 additions & 28 deletions etc/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}

Expand Down
1 change: 1 addition & 0 deletions etc/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ http:

tokens:
- rdb-builtin-token
- ams-builtin-token

redis:
# as queue
Expand Down

0 comments on commit e142785

Please sign in to comment.