29 lines
822 B
Plaintext
29 lines
822 B
Plaintext
proxy_cache_path /data/nginx/cache/xaibox levels=1:2 keys_zone=xaibox:10m max_size=10g
|
|
inactive=60m use_temp_path=off;
|
|
|
|
upstream xaibox_upstream {
|
|
server tasks.xaibox_app:8083;
|
|
|
|
server xaibox.xai-corp.net:8083 backup;
|
|
server dkhost.xai-corp.net:8083 backup;
|
|
}
|
|
|
|
# xaibox.xai-corp.net
|
|
server {
|
|
listen 443 ssl;
|
|
server_name xaibox.xai-corp.net;
|
|
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
|
|
|
client_max_body_size 200m;
|
|
|
|
#Strict-Transport-Security: max-age=15768000
|
|
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
|
|
|
location / {
|
|
proxy_set_header Connection $http_connection;
|
|
proxy_pass http://xaibox_upstream;
|
|
}
|
|
|
|
}
|