feat: integrate invitation access, world NPCs, and deployment

This commit is contained in:
2026-09-08 22:22:38 +08:00
parent 2a3125075f
commit 513a3eba31
75 changed files with 9566 additions and 1070 deletions

View File

@@ -2,20 +2,5 @@ server {
listen 80;
server_name whaletownadmin.xinghangee.icu;
root /var/www/whale-town-end-v2/client/dist;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /index.html {
add_header Cache-Control "no-cache";
}
location ~* \.(?:js|css|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800, immutable";
try_files $uri =404;
}
return 301 https://whaletown.novamailio.com/admin$request_uri;
}

View File

@@ -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/;
}
}