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" "immutable"
else else
"must-revalidate"; "must-revalidate";
in '' in {
add_header Cache-Control "public, max-age=${ extraConfig = ''
toString maxAge add_header Cache-Control "public, max-age=${
}, ${immutableString}"; toString maxAge
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains"; }, ${immutableString}";
try_files $uri =404; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
''; try_files $uri =404;
'';
};
in { in {
"/api/v1/streaming" = { "/api/v1/streaming" = {
extraConfig = '' extraConfig = ''