hosts/ao: refactor nginx config
This commit is contained in:
parent
8ca2cc66ba
commit
699e272643
|
@ -37,22 +37,23 @@ with lib.my;
|
|||
default = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."~* \.(?:ico|css|map|js|gif|jpe?g|png|ttf|woff)$".extraConfig = ''
|
||||
locations = {
|
||||
"~* \.(?:ico|css|map|js|gif|jpe?g|png|ttf|woff)$".extraConfig = ''
|
||||
access_log off;
|
||||
expires 30d;
|
||||
add_header Pragma public;
|
||||
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
|
||||
proxy_pass https://kiiro:8001;
|
||||
proxy_pass http://kiiro:8000;
|
||||
proxy_buffering off;
|
||||
'';
|
||||
locations."/".extraConfig = ''
|
||||
"/".extraConfig = ''
|
||||
client_max_body_size 10m;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_pass_header Authorization;
|
||||
proxy_pass https://kiiro:8001;
|
||||
proxy_pass http://kiiro:8000;
|
||||
proxy_buffering off;
|
||||
proxy_redirect off;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
security.acme.email = "henrik@lissner.net";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue