From 9d60ed9d1c3e735e450da17f6f1ec3243c118280 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 14 Jul 2024 18:19:42 +0530 Subject: [PATCH] rico0: reverse proxy to frps dashboard --- hosts/rico0/services/caddy.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/rico0/services/caddy.nix b/hosts/rico0/services/caddy.nix index 9276aec..8eedd00 100644 --- a/hosts/rico0/services/caddy.nix +++ b/hosts/rico0/services/caddy.nix @@ -3,5 +3,12 @@ _: { enable = true; acmeCA = "https://acme-v02.api.letsencrypt.org/directory"; email = "admin@acomputer.lol"; + + 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 + ''; + }; }; }