From 5deb902abe8bf5104e3973e0be947a084f751eae Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 18 Jan 2024 14:52:06 -0800 Subject: [PATCH] Need to wrap string in extraConfig --- mastodon-container.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 818eec0..24c6ade 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -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 = ''