Serve forgejo under sstork.dev instead of tailnet

This commit is contained in:
SebastianStork 2025-05-28 21:22:27 +02:00
parent d5f7e88b59
commit 1d58b58772
4 changed files with 24 additions and 23 deletions

View file

@ -12,12 +12,6 @@
ssh.enable = true;
};
hedgedoc = {
enable = true;
domain = "docs.sprouted.cloud";
backups.enable = true;
};
crowdsec = {
enable = true;
firewallBouncer.enable = true;
@ -26,14 +20,29 @@
"caddy"
];
};
hedgedoc = {
enable = true;
domain = "docs.sprouted.cloud";
backups.enable = true;
};
forgejo = {
enable = true;
domain = "git.sstork.dev";
};
};
};
services.caddy = {
enable = true;
virtualHosts.${config.custom.services.hedgedoc.domain}.extraConfig = ''
reverse_proxy localhost:${toString config.custom.services.hedgedoc.port}
'';
virtualHosts = {
${config.custom.services.hedgedoc.domain}.extraConfig = ''
reverse_proxy localhost:${toString config.custom.services.hedgedoc.port}
'';
${config.custom.services.forgejo.domain}.extraConfig = ''
reverse_proxy localhost:${toString config.custom.services.forgejo.port}
'';
};
};
networking.firewall.allowedTCPPorts = [