Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes. Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1000 B
Plaintext
45 lines
1000 B
Plaintext
# dy.nomadro.cn -> 品牌落地页(链到后台 / 说明小程序)
|
|
|
|
server
|
|
{
|
|
listen 80;
|
|
server_name dy.nomadro.cn;
|
|
root /www/wwwroot/dy.nomadro.cn;
|
|
|
|
location ~ ^/\.well-known/ {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
access_log /www/wwwlogs/dy.nomadro.cn.log;
|
|
error_log /www/wwwlogs/dy.nomadro.cn.error.log;
|
|
}
|
|
|
|
server
|
|
{
|
|
listen 443 ssl http2;
|
|
server_name dy.nomadro.cn;
|
|
root /www/wwwroot/dy.nomadro.cn;
|
|
index index.html;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/dy.nomadro.cn/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/dy.nomadro.cn/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
location ~ ^/\.well-known/ {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
access_log /www/wwwlogs/dy.nomadro.cn.log;
|
|
error_log /www/wwwlogs/dy.nomadro.cn.error.log;
|
|
}
|