From 595f0cc35d1993174d70577ed0db2126309429f9 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Thu, 31 Jul 2025 19:54:59 +0100 Subject: [PATCH] hosts/vps1: delete outline --- hosts/vps1/default.nix | 1 - hosts/vps1/outline.nix | 51 ------------------------------------------ 2 files changed, 52 deletions(-) delete mode 100644 hosts/vps1/outline.nix diff --git a/hosts/vps1/default.nix b/hosts/vps1/default.nix index 2ecb9e9..d695270 100644 --- a/hosts/vps1/default.nix +++ b/hosts/vps1/default.nix @@ -11,7 +11,6 @@ ./kanidm.nix ./matrix.nix ./nginx.nix - ./outline.nix ./photoprism.nix ../server.nix ]; diff --git a/hosts/vps1/outline.nix b/hosts/vps1/outline.nix deleted file mode 100644 index 9c39751..0000000 --- a/hosts/vps1/outline.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ - inputs, - config, - ... -}: -let - domain = "outline.vimium.com"; -in -{ - services.nginx.virtualHosts = { - "${domain}" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://127.0.0.1:3000"; - extraConfig = '' - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Scheme $scheme; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_redirect off; - ''; - }; - }; - }; - - age.secrets."passwords/services/outline/oidc-client-secret" = { - file = "${inputs.secrets}/passwords/services/outline/oidc-client-secret.age"; - owner = "outline"; - group = "outline"; - }; - - services.outline = { - enable = false; - forceHttps = false; - oidcAuthentication = { - clientId = "outline"; - clientSecretFile = config.age.secrets."passwords/services/outline/oidc-client-secret".path; - displayName = "Vimium"; - authUrl = "https://auth.vimium.com/ui/oauth2"; - tokenUrl = "https://auth.vimium.com/oauth2/token"; - userinfoUrl = "https://auth.vimium.com/oauth2/openid/outline/userinfo"; - }; - publicUrl = "https://${domain}"; - storage.storageType = "local"; - }; -}