From bdf862cc91639b23ba86e6b1cd5dc0939ab72189 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 29 Dec 2022 10:25:53 +0800 Subject: [PATCH] hosts/plover: fix reverse proxy routes --- hosts/plover/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/plover/default.nix b/hosts/plover/default.nix index 0372a599..0f722499 100644 --- a/hosts/plover/default.nix +++ b/hosts/plover/default.nix @@ -158,11 +158,21 @@ in # Gitea instance. "${codeForgeDomain}" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:${toString config.services.gitea.httpPort}"; + }; + }; + + # Keycloak instance. + "${authDomain}" = { forceSSL = true; enableACME = true; locations = let keycloakPath = path: "http://localhost:${toString config.services.gitea.httpPort}${path}"; - in { + in + { "/realms".proxyPass = keycloakPath "/realms"; "/resources".proxyPass = keycloakPath "/resources"; "/robots.txt".proxyPass = keycloakPath "/robots.txt";