mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 11:35:41 +00:00
feat(vps): add caddy
- Enabled caddy service - Opened port 80, 443 for Caddy
This commit is contained in:
parent
cbe7b1204d
commit
24900346f9
3 changed files with 15 additions and 1 deletions
|
@ -3,6 +3,9 @@
|
|||
{
|
||||
networking.hostName = "vps";
|
||||
networking.domain = "";
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 ];
|
||||
};
|
||||
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
||||
}
|
||||
|
|
10
hosts/vps/modules/services/caddy.nix
Normal file
10
hosts/vps/modules/services/caddy.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
||||
# zipline
|
||||
virtualHosts."i.toast.name".extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:3000
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -4,5 +4,6 @@
|
|||
./vaultwarden.nix
|
||||
./openssh.nix
|
||||
./zipline.nix
|
||||
./caddy.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue