forgejo: move domain from being machine-specific to public
This commit is contained in:
parent
b23be17545
commit
90ba20d2cc
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
settings = {
|
||||
session.COOKIE_SECURE = true;
|
||||
server = {
|
||||
DOMAIN = "git.${config.homelab.domain}";
|
||||
DOMAIN = "git.${config.homelab.publicDomain}";
|
||||
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}";
|
||||
SSH_PORT = 22;
|
||||
# PROTOCOL = "https";
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
# in order to only allow that to the forgejo user as it has "/var"
|
||||
services.openssh.authorizedKeysInHomedir = lib.mkForce true;
|
||||
|
||||
services.caddy.virtualHosts."git.${config.homelab.domain}" = {
|
||||
services.caddy.virtualHosts."git.${config.homelab.publicDomain}" = {
|
||||
useACMEHost = config.homelab.domain;
|
||||
extraConfig = ''
|
||||
reverse_proxy http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue