app/codehosting: use code.hackerspace.pl as canonical name

Change-Id: Ifdad75922bec45b8626b8fcbd14951fc2c64c879
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1687
Reviewed-by: q3k <q3k@hackerspace.pl>
changes/87/1687/6
informatic 2023-10-08 22:08:24 +02:00 committed by informatic
parent 3a3b425ddf
commit 9e4382506b
2 changed files with 6 additions and 3 deletions

View File

@ -44,6 +44,7 @@ local postgres = import "../../kube/postgres.libsonnet";
# Forgejo configuration, roughly representing the structure of app.ini
instanceName: error "instanceName (e.g. 'Warsaw Hackerspace Forgejo') must be set",
runMode: "prod",
altDomains: [],
server: {
domain: error "domain (e.g. git.hackerspace.pl) must be set",
sshDomain: cfg.server.domain,
@ -235,17 +236,18 @@ local postgres = import "../../kube/postgres.libsonnet";
},
spec+: {
tls: [
{ hosts: [cfg.server.domain], secretName: forgejo.name("acme") },
{ hosts: [cfg.server.domain] + cfg.altDomains, secretName: forgejo.name("acme") },
],
rules: [
{
host: cfg.server.domain,
host: domain,
http: {
paths: [
{ path: "/", backend: forgejo.svc.name_port },
],
},
}
for domain in [cfg.server.domain] + cfg.altDomains
],
},
},

View File

@ -12,8 +12,9 @@ local forgejo = import "forgejo.libsonnet";
admin_email: "bofh@hackerspace.pl",
instanceName: "Warsaw Hackerspace Codehosting",
altDomains: [],
server+: {
domain: "git.hackerspace.pl",
domain: "code.hackerspace.pl",
},
},
},