a
This commit is contained in:
parent
3539821976
commit
3cfa496984
1 changed files with 12 additions and 0 deletions
|
|
@ -45,10 +45,22 @@
|
|||
ragon.agenix.secrets."picardResticSSHKey" = { };
|
||||
ragon.agenix.secrets."picardResticHealthCheckUrl" = { };
|
||||
|
||||
extraConfig = ''
|
||||
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m max_size=4g
|
||||
inactive=60m use_temp_path=off;
|
||||
'';
|
||||
services.nginx.recommendedOptimisation = true;
|
||||
services.nginx.virtualHosts."xyno.space" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://[::1]${config.services.xynoblog.listen}";
|
||||
locations."/".extraConfig = ''
|
||||
proxy_buffering on;
|
||||
proxy_cache STATIC;
|
||||
proxy_cache_valid 200 1d;
|
||||
proxy_cache_use_stale error timeout invalid_header updating
|
||||
http_500 http_502 http_503 http_504;
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx.appendHttpConfig = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue