refactor docker swarm to use just home without workers for now
add caching at nginx level for portainer and gitea
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
proxy_cache_path /data/nginx/cache/dkui levels=1:2 keys_zone=dkui:10m max_size=10g
|
||||
inactive=60m use_temp_path=off;
|
||||
|
||||
upstream portainer_upstream {
|
||||
server tasks.dkui_app:9000;
|
||||
|
||||
server dkhost.xai-corp.net:9000 backup;
|
||||
}
|
||||
|
||||
# dkui.xai-corp.net
|
||||
server {
|
||||
listen 443 ssl ipv6only=off;
|
||||
# listen 443 ssl ipv6only=off;
|
||||
listen 443 ssl;
|
||||
server_name dkui.xai-corp.net;
|
||||
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
|
||||
@@ -15,7 +25,10 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://dkhost.xai-corp.net:9000;
|
||||
proxy_pass http://portainer_upstream;
|
||||
|
||||
proxy_connect_timeout 3s;
|
||||
# proxy_next_upstream_timeout 1.5s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user