Need to wrap string in extraConfig
This commit is contained in:
parent
def3a59869
commit
5deb902abe
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in New Issue