2020-05-07 02:53:23 +00:00
|
|
|
server {
|
|
|
|
server_name {{ (parseUrl .Env.WEB_LEGACY_PLAY).Host }};
|
|
|
|
|
|
|
|
{{ if (parseUrl .Env.WEB_LEGACY_PLAY).Path }}
|
|
|
|
location {{ (parseUrl .Env.WEB_LEGACY_PLAY).Path }} {
|
|
|
|
root /usr/share/nginx/legacy/;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/legacy/{{ (parseUrl .Env.WEB_LEGACY_PLAY).Path }};
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
location {{ (parseUrl .Env.WEB_LEGACY_MEDIA).Path }} {
|
|
|
|
root /usr/share/nginx/legacy/;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
location {{ (parseUrl .Env.WEB_LEGACY_PLAY).Path }}/v2 {
|
|
|
|
root /usr/share/nginx/legacy/media/;
|
|
|
|
}
|
|
|
|
{{ else }}
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/legacy/play;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
location /create_account/create_account.php {
|
|
|
|
proxy_pass http://dash:3000/create/legacy;
|
|
|
|
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-22 15:03:22 +00:00
|
|
|
location ~ ^/penguin/activate/(.*) {
|
2020-08-22 15:24:35 +00:00
|
|
|
proxy_pass http://dash:3000/activate/legacy/$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;
|
|
|
|
}
|
2021-01-07 12:58:31 +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_LEGACY_MEDIA).Host }};
|
|
|
|
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/legacy/media;
|
|
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|