From d9747c64b038943253eaafdc59a49d5face46dab Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 20 Sep 2024 05:36:20 -0700 Subject: modules: server and core modules --- modules/core/networking/caddy.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/core/networking/caddy.nix (limited to 'modules/core/networking/caddy.nix') diff --git a/modules/core/networking/caddy.nix b/modules/core/networking/caddy.nix new file mode 100644 index 0000000..efba3f6 --- /dev/null +++ b/modules/core/networking/caddy.nix @@ -0,0 +1,17 @@ +{ + services.caddy = { + enable = true; + + virtualHosts = { + "i2pd.localhost".extraConfig = '' + reverse_proxy localhost:7070 + tls internal + ''; + + "glance.localhost".extraConfig = '' + reverse_proxy localhost:8080 + tls internal + ''; + }; + }; +} -- cgit v1.2.3