drone: also listen on drone.c3d2.de

This commit is contained in:
Sandro - 2023-12-16 16:42:34 +01:00
parent e390d4650d
commit b98d18bb3d
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 4 additions and 6 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

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