Need to wrap string in extraConfig

This commit is contained in:
niten 2024-01-18 14:52:06 -08:00
parent def3a59869
commit 5deb902abe
1 changed files with 9 additions and 7 deletions

View File

@ -146,13 +146,15 @@ in {
"immutable"
else
"must-revalidate";
in ''
add_header Cache-Control "public, max-age=${
toString maxAge
}, ${immutableString}";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
try_files $uri =404;
'';
in {
extraConfig = ''
add_header Cache-Control "public, max-age=${
toString maxAge
}, ${immutableString}";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
try_files $uri =404;
'';
};
in {
"/api/v1/streaming" = {
extraConfig = ''