nginx: / location with root = "/var/www/root"

pull/55/head
Alexander 2023-12-19 16:19:22 +04:00
parent b37cadff68
commit eb59d33e1f
1 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,6 @@ in
proxy_headers_hash_bucket_size 128;
proxy_headers_hash_max_size 512;
'';
virtualHosts = {
"${domain}" = {
sslCertificate = "/var/lib/acme/wildcard-${domain}/fullchain.pem";
@ -35,6 +34,11 @@ in
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
expires 10m;
'';
locations = {
"/" = {
root = "/var/www/root";
};
};
};
"api.${domain}" = {
sslCertificate = "/var/lib/acme/wildcard-${domain}/fullchain.pem";
@ -59,4 +63,7 @@ in
};
};
};
systemd.tmpfiles.rules = [
"d /var/www/root 0750 nginx nginx - -"
];
}