hosts/ao: refactor nginx config

This commit is contained in:
Henrik Lissner 2021-02-27 23:03:59 -05:00
parent 8ca2cc66ba
commit 699e272643

View file

@ -37,21 +37,22 @@ with lib.my;
default = true; default = true;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."~* \.(?:ico|css|map|js|gif|jpe?g|png|ttf|woff)$".extraConfig = '' locations = {
access_log off; "~* \.(?:ico|css|map|js|gif|jpe?g|png|ttf|woff)$".extraConfig = ''
expires 30d; access_log off;
add_header Pragma public; expires 30d;
add_header Cache-Control "public, mustrevalidate, proxy-revalidate"; add_header Pragma public;
proxy_pass https://kiiro:8001; add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
proxy_buffering off; proxy_pass http://kiiro:8000;
''; proxy_buffering off;
locations."/".extraConfig = '' '';
client_max_body_size 10m; "/".extraConfig = ''
proxy_ssl_server_name on; client_max_body_size 10m;
proxy_pass_header Authorization; proxy_pass http://kiiro:8000;
proxy_pass https://kiiro:8001; proxy_buffering off;
proxy_buffering off; proxy_redirect off;
''; '';
};
}; };
security.acme.email = "henrik@lissner.net"; security.acme.email = "henrik@lissner.net";