configuration.nix/hosts/rico0/services/caddy.nix

15 lines
358 B
Nix
Raw Normal View History

2024-07-07 00:25:34 +05:30
_: {
services.caddy = {
enable = true;
acmeCA = "https://acme-v02.api.letsencrypt.org/directory";
email = "admin@acomputer.lol";
2024-07-14 18:19:42 +05:30
virtualHosts."frp.local.adtya.xyz" = {
extraConfig = ''
reverse_proxy 10.10.10.1:7500
tls /persist/secrets/caddy/certs/frp.crt /persist/secrets/caddy/certs/frp.key
'';
};
2024-07-07 00:25:34 +05:30
};
}