mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Run hedgedoc on cirrus
This commit is contained in:
parent
6a3e7b7741
commit
d13f631042
3 changed files with 30 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
_: {
|
||||
{ config, ... }:
|
||||
{
|
||||
system.stateVersion = "24.11";
|
||||
networking.domain = "sprouted.cloud";
|
||||
|
||||
myConfig = {
|
||||
boot.loader.grub.enable = true;
|
||||
|
|
@ -9,5 +11,23 @@ _: {
|
|||
enable = true;
|
||||
ssh.enable = true;
|
||||
};
|
||||
|
||||
hedgedoc = {
|
||||
enable = true;
|
||||
subdomain = "docs";
|
||||
backups.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."docs.${config.networking.domain}".extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.myConfig.hedgedoc.port}
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue