From 0531fdcfeb8c098e581ff6b8c6448104be99524c Mon Sep 17 00:00:00 2001 From: DavHau Date: Wed, 29 May 2024 20:00:38 +0200 Subject: [PATCH] add clan.lol/installer.sh --- modules/web01/gitea/default.nix | 3 ++- modules/web01/gitea/installer.nix | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 modules/web01/gitea/installer.nix diff --git a/modules/web01/gitea/default.nix b/modules/web01/gitea/default.nix index a8f6320..2aa750f 100644 --- a/modules/web01/gitea/default.nix +++ b/modules/web01/gitea/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, publog, self, ... }: +{ config, pkgs, lib, self, ... }: let # make the logs for this host "public" so that they show up in e.g. metrics @@ -13,6 +13,7 @@ in imports = [ ./postgresql.nix ./actions-runner.nix + ./installer.nix ]; services.gitea = { diff --git a/modules/web01/gitea/installer.nix b/modules/web01/gitea/installer.nix new file mode 100644 index 0000000..d8d76b5 --- /dev/null +++ b/modules/web01/gitea/installer.nix @@ -0,0 +1,13 @@ +{ + # http forward from https://clan.lol/sh to https://git.clan.lol/clan/clan-core/raw/branch/main/pkgs/gui-installer/gui-installer.sh + services.nginx.virtualHosts."clan.lol" = { + forceSSL = true; + enableACME = true; + locations."/install.sh".extraConfig = '' + proxy_pass http://localhost:3002/clan/clan-core/raw/branch/main/pkgs/gui-installer/gui-installer.sh; + ''; + locations."/install-dev.sh".extraConfig = '' + proxy_pass http://localhost:3002/clan/clan-core/raw/branch/install-dev/pkgs/gui-installer/gui-installer.sh; + ''; + }; +}