2020-05-07 02:53:23 +00:00
|
|
|
server {
|
|
|
|
server_name {{ (parseUrl .Env.WEB_VANILLA_PLAY).Host }};
|
|
|
|
|
|
|
|
location {{ (parseUrl .Env.WEB_VANILLA_PLAY).Path }}/ {
|
|
|
|
root /usr/share/nginx/vanilla/play/;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
|
2020-05-17 20:47:37 +00:00
|
|
|
location ~ ^/(.*)/penguin/create {
|
|
|
|
proxy_pass http://dash:3000/create/vanilla/$1;
|
2020-05-07 02:53:23 +00:00
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
2020-05-17 20:47:37 +00:00
|
|
|
|
|
|
|
location /penguin/create {
|
|
|
|
proxy_pass http://dash:3000/create/vanilla/en;
|
2020-05-07 02:53:23 +00:00
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
2020-05-17 20:47:37 +00:00
|
|
|
|
2020-05-16 16:02:49 +00:00
|
|
|
location ~ ^/(.*)/penguin/activate/(.*) {
|
2020-05-16 22:13:39 +00:00
|
|
|
proxy_pass http://dash:3000/activate/vanilla/$1/$2;
|
2020-05-07 02:53:23 +00:00
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
2020-05-17 20:47:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
location ~ ^/(.*)/penguin/activate {
|
|
|
|
proxy_pass http://dash:3000/activate/vanilla/$1;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /penguin/activate {
|
|
|
|
proxy_pass http://dash:3000/activate/vanilla/en;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location ~ ^/(.*)/penguin/forgot-password/(.*) {
|
|
|
|
proxy_pass http://dash:3000/password/$1/$2;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location ~ ^/(.*)/penguin/forgot-password {
|
|
|
|
proxy_pass http://dash:3000/password/$1;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /penguin/forgot-password {
|
|
|
|
proxy_pass http://dash:3000/password/en;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-05-07 02:53:23 +00:00
|
|
|
location ~ ^/avatar/(.*)/cp$ {
|
|
|
|
proxy_pass http://dash:3000/avatar/$1$is_args$args;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
2021-11-09 03:22:16 +00:00
|
|
|
location ~ ^/(.*)/web-service/snfgenerator/session$ {
|
|
|
|
proxy_pass http://dash:3000/session$is_args$args;
|
2020-05-07 02:53:23 +00:00
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /api/v0.2/xxx/game/get/world-name-service/start_world_request {
|
|
|
|
proxy_pass http://dash:3000/swrequest;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
2020-08-03 16:23:38 +00:00
|
|
|
|
|
|
|
location /manager {
|
|
|
|
proxy_pass http://dash:3000/manager;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
2020-05-07 02:53:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
server_name {{ (parseUrl .Env.WEB_VANILLA_MEDIA).Host }};
|
|
|
|
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/vanilla/media;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /social/autocomplete/v2/search/suggestions {
|
|
|
|
proxy_pass http://dash:3000/autocomplete;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
}
|