mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Add caddy module with tailscale integration
This commit is contained in:
parent
1f4b3e734b
commit
e909dcd866
6 changed files with 164 additions and 147 deletions
|
|
@ -30,23 +30,15 @@
|
|||
enable = true;
|
||||
domain = "git.sstork.dev";
|
||||
};
|
||||
|
||||
caddy.virtualHosts = {
|
||||
hedgedoc = {
|
||||
inherit (config.custom.services.hedgedoc) domain port;
|
||||
};
|
||||
forgejo = {
|
||||
inherit (config.custom.services.forgejo) domain port;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
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 = [
|
||||
80
|
||||
443
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue