add clan.lol/installer.sh #188

Merged
DavHau merged 1 commits from dave into main 2024-05-29 18:02:29 +00:00
2 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, publog, self, ... }: { config, pkgs, lib, self, ... }:
let let
# make the logs for this host "public" so that they show up in e.g. metrics # make the logs for this host "public" so that they show up in e.g. metrics
@ -13,6 +13,7 @@ in
imports = [ imports = [
./postgresql.nix ./postgresql.nix
./actions-runner.nix ./actions-runner.nix
./installer.nix
]; ];
services.gitea = { services.gitea = {

View File

@ -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;
'';
};
}