From e96f9607be81c1b6c974b93bb8fa7badc669e22b Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Thu, 2 Oct 2025 15:11:29 +0200 Subject: [PATCH] move refinery to 'common' --- {deemz.org => common}/refinery.nix | 4 ++++ flake.nix | 4 ++-- msdl/configuration.nix | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) rename {deemz.org => common}/refinery.nix (92%) diff --git a/deemz.org/refinery.nix b/common/refinery.nix similarity index 92% rename from deemz.org/refinery.nix rename to common/refinery.nix index de74329..5b09397 100644 --- a/deemz.org/refinery.nix +++ b/common/refinery.nix @@ -13,6 +13,10 @@ locations."${refineryBaseUrl}/" = { proxyPass = "http://127.0.0.1:8888/"; proxyWebsockets = true; + extraConfig = '' + charset UTF-8; + more_set_headers 'Server: NIXOS'; + ''; }; locations."${refineryBaseUrl}/api/" = { diff --git a/flake.nix b/flake.nix index c7467a1..6cbea70 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,7 @@ }; modules = [ ./deemz.org/configuration.nix - ./deemz.org/refinery.nix + ./common/refinery.nix ]; }; msdl = nixpkgs-stable.lib.nixosSystem { @@ -41,7 +41,7 @@ }; modules = [ ./msdl/configuration.nix - ./deemz.org/refinery.nix + ./common/refinery.nix ]; }; }; diff --git a/msdl/configuration.nix b/msdl/configuration.nix index 0b57b12..f8b7919 100644 --- a/msdl/configuration.nix +++ b/msdl/configuration.nix @@ -83,10 +83,6 @@ recommendedProxySettings = true; recommendedTlsSettings = true; forceSSL = true; - extraConfig = '' - charset UTF-8; - more_set_headers 'Server: NIXOS'; - ''; }; # Copy the NixOS configuration file and link it from the resulting system