forked from xiangwang25/whale-town-end-v2
feat: integrate invitation access, world NPCs, and deployment
This commit is contained in:
@@ -1,8 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name whaletownend.xinghangee.icu;
|
||||
server_name whaletown.novamailio.com;
|
||||
|
||||
client_max_body_size 24m;
|
||||
root /var/www/whale-town-end-v2/client/dist;
|
||||
|
||||
location = /admin {
|
||||
return 301 /admin/;
|
||||
}
|
||||
|
||||
location ^~ /admin/assets/ {
|
||||
rewrite ^/admin/(.*)$ /$1 break;
|
||||
try_files $uri =404;
|
||||
expires 7d;
|
||||
add_header Cache-Control "public, max-age=604800, immutable";
|
||||
}
|
||||
|
||||
location /admin/ {
|
||||
rewrite ^/admin/(.*)$ /$1 break;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
internal;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location /game {
|
||||
proxy_pass http://127.0.0.1:3001/game;
|
||||
@@ -43,12 +65,21 @@ server {
|
||||
proxy_send_timeout 3600s;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
location = /api {
|
||||
return 301 /api/;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
# The trailing slash strips the public /api prefix before Nest routing.
|
||||
proxy_pass http://127.0.0.1:3000/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 302 /admin/;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user