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:
commit
f67814c5d6
@ -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 = {
|
||||||
|
13
modules/web01/gitea/installer.nix
Normal file
13
modules/web01/gitea/installer.nix
Normal 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;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user