Compare commits

...

2 Commits

Author SHA1 Message Date
031983e019
matemat: add mate,matemat.c3d2.de 2023-12-16 16:43:23 +01:00
b98d18bb3d
drone: also listen on drone.c3d2.de 2023-12-16 16:43:19 +01:00
3 changed files with 6 additions and 7 deletions

View File

@ -1,8 +1,5 @@
{ config, libC, pkgs, ... }:
let
hostname = "drone.hq.c3d2.de";
in
{
c3d2.deployment.server = "server10";
@ -13,11 +10,12 @@ in
services = {
nginx = {
enable = true;
virtualHosts.${hostname} = {
virtualHosts."drone.hq.c3d2.de" = {
forceSSL = true;
enableACME = true;
listen = libC.defaultListen;
locations."/".proxyPass = "http://localhost:5000";
serverAliases = [ "drone.c3d2.de" ];
};
};
@ -71,7 +69,7 @@ in
"DRONE_DATADOG_ENABLED=false"
"DRONE_DATADOG_ENDPOINT=null"
"DRONE_GITEA_SERVER=https://gitea.c3d2.de"
"DRONE_SERVER_HOST=${hostname}"
"DRONE_SERVER_HOST=drone.c3d2.de"
"DRONE_SERVER_PORT=:5000"
"DRONE_SERVER_PROTO=https"
"DRONE_USER_CREATE=username:sandro,admin:true"

View File

@ -23,6 +23,7 @@
auth_basic_user_file ${config.sops.secrets."nginx/basic-auth".path};
'';
};
serverAliases = [ "mate.c3d2.de" "matemat.c3d2.de" ];
};
};

View File

@ -98,7 +98,7 @@
];
proxyTo.host = hostRegistry.network-homepage.ip4;
} {
hostNames = [ "matemat.hq.c3d2.de" ];
hostNames = [ "mate.c3d2.de" "matemat.c3d2.de" "matemat.hq.c3d2.de" ];
proxyTo.host = hostRegistry.matemat.ip4;
} {
hostNames = [
@ -142,7 +142,7 @@
hostNames = [ "relay.fedi.buzz" ];
proxyTo.host = zentralwerk.lib.config.site.net.serv.hosts4.buzzrelay;
} {
hostNames = [ "drone.hq.c3d2.de" ];
hostNames = [ "drone.c3d2.de" "drone.hq.c3d2.de" ];
proxyTo.host = hostRegistry.drone.ip4;
proxyProtocol = true;
} {