1
0
forked from clan/clan-infra

Merge pull request 'add clan.lol/installer.sh' (#188) from dave into main

Reviewed-on: clan/clan-infra#188
This commit is contained in:
DavHau 2024-05-29 18:02:29 +00:00
commit f67814c5d6
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
# 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 = {

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