mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
setup vps1 ingress
This commit is contained in:
parent
d925b4783e
commit
03c4ca2f95
5 changed files with 109 additions and 6 deletions
|
|
@ -1 +1,20 @@
|
|||
{ ... }: { }
|
||||
{ pkgs, ... }: {
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
22
|
||||
443
|
||||
];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
configFile = pkgs.writeText "Caddyfile"
|
||||
(
|
||||
builtins.readFile ./Caddyfile +
|
||||
''
|
||||
vps1.nilstrieb.dev {
|
||||
root * ${./debugging-page}
|
||||
file_server
|
||||
}
|
||||
''
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue