mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Serve forgejo under sstork.dev instead of tailnet
This commit is contained in:
parent
d5f7e88b59
commit
1d58b58772
4 changed files with 24 additions and 23 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue