Deploy huijutec package and stabilize AI model

This commit is contained in:
2026-05-11 17:35:16 +08:00
parent 8908ebbc4c
commit cff55251f4
14 changed files with 225 additions and 190 deletions

View File

@@ -4,8 +4,6 @@ map $http_upgrade $connection_upgrade {
}
# XXX Preserve the public HTTPS scheme when an outer reverse proxy terminates TLS.
# XXX If the outer proxy does not send X-Forwarded-Proto, this falls back to this container's scheme.
# XXX For fixed public-HTTPS appliance packages, override the /api proxy header to "https".
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
default $http_x_forwarded_proto;
'' $scheme;
@@ -33,7 +31,9 @@ server {
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 $proxy_x_forwarded_proto;
# XXX huijutec.cn public entry is HTTPS. Force this for the API so Express can issue Secure session cookies
# XXX even when QTS/NPM/frpc does not preserve X-Forwarded-Proto through every proxy hop.
proxy_set_header X-Forwarded-Proto https;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
@@ -70,7 +70,9 @@ server {
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 $proxy_x_forwarded_proto;
# XXX huijutec.cn public entry is HTTPS. Force this for the API so Express can issue Secure session cookies
# XXX even when QTS/NPM/frpc does not preserve X-Forwarded-Proto through every proxy hop.
proxy_set_header X-Forwarded-Proto https;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {