From d9c5393cffadbb7c86915b465c4c4dc7c1412913 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Thu, 6 Jun 2024 00:23:09 +0100 Subject: [PATCH] [yevaud] Change Forgejo domain name --- hosts/yevaud/forgejo.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hosts/yevaud/forgejo.nix b/hosts/yevaud/forgejo.nix index 31e8494..e103297 100644 --- a/hosts/yevaud/forgejo.nix +++ b/hosts/yevaud/forgejo.nix @@ -10,19 +10,23 @@ # TODO: interface customisation services.nginx.virtualHosts = { - # TODO: move to new domain - "git.katherina.rocks" = { + "git.qenya.tel" = { forceSSL = true; enableACME = true; locations."/".proxyPass = "http://[::1]:3000/"; }; + "git.katherina.rocks" = { + forceSSL = true; + enableACME = true; + locations."/".return = "301 https://git.qenya.tel$request_uri"; + }; }; services.forgejo = { enable = true; stateDir = "/data/forgejo"; settings = { - DEFAULT.APP_NAME = "git.katherina.rocks"; + DEFAULT.APP_NAME = "git.qenya.tel"; cache = { ADAPTER = "twoqueue"; HOST = ''{"size": 100, "recent_ratio": 0.25, "ghost_ratio": 0.5}''; @@ -33,9 +37,9 @@ }; security.LOGIN_REMEMBER_DAYS = 365; server = { - DOMAIN = "git.katherina.rocks"; + DOMAIN = "git.qenya.tel"; HTTP_PORT = 3000; - ROOT_URL = "https://git.katherina.rocks/"; + ROOT_URL = "https://git.qenya.tel/"; }; service.DISABLE_REGISTRATION = true; };