From cac7a846cc24d48cfa5419bc827ac35584906ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sat, 31 Aug 2024 12:50:41 +0200 Subject: [PATCH] TEMP: adjustments for it to work as a paperless testing vm --- configuration.nix | 4 ++-- nginx.nix | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 6086525..2daf606 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,6 +1,6 @@ # vim: tabstop=2 shiftwidth=2 expandtab let - base-domain = "005540.xyz"; + base-domain = "paperless-testing.hummingbird-stork.ts.net"; in { lib, ... }: { imports = [ @@ -36,7 +36,7 @@ in boot.tmp.cleanOnBoot = true; zramSwap.enable = true; - networking.hostName = "quasar"; + networking.hostName = "paperless-testing"; users.users.root.initialPassword = "asunarovow"; networking.domain = ""; nix.allowedUsers = [ "@wheel" "root" ]; diff --git a/nginx.nix b/nginx.nix index 31d5767..f06429d 100644 --- a/nginx.nix +++ b/nginx.nix @@ -6,9 +6,14 @@ recommendedOptimisation = true; recommendedGzipSettings = true; recommendedProxySettings = true; + serverNamesHashBucketSize = 128; virtualHosts = { "${base-domain}" = { enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:28981"; + }; }; "sourcehut.${base-domain}" = { enableACME = true;