feat: 添加版本和构建时间变量 fix: 修正短信队列类型注释错误 style: 清理未使用的代码和测试文件 docs: 更新安装文档中的下载链接 chore: 迁移数据库脚本添加日志和订阅配置
67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name api.hifast.biz 4d3vsw8.88xgaen.hifast.biz;
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name api.hifast.biz;
|
|
client_max_body_size 150M;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/api.hifast.biz/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/api.hifast.biz/privkey.pem;
|
|
# 安全头
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
add_header X-Frame-Options DENY;
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8080;
|
|
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;
|
|
}
|
|
}
|
|
|
|
# de99e242子域名指向3001 (管理界面)
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name 4d3vsw8.88xgaen.hifast.biz;
|
|
client_max_body_size 150M;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/4d3vsw8.88xgaen.hifast.biz/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/4d3vsw8.88xgaen.hifast.biz/privkey.pem;
|
|
|
|
# 安全头
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
add_header X-Frame-Options DENY;
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
# Gzip压缩
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_min_length 1024;
|
|
gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json image/svg+xml;
|
|
|
|
location ^~ / {
|
|
proxy_pass http://127.0.0.1:3001;
|
|
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 REMOTE-HOST $remote_addr;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $http_connection;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
proxy_http_version 1.1;
|
|
add_header X-Cache $upstream_cache_status;
|
|
add_header Cache-Control no-cache;
|
|
proxy_ssl_server_name off;
|
|
proxy_ssl_name $proxy_host;
|
|
}
|
|
} |