From 12b1ae8207cb73307734a51a48b7449ac90a4a6e Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 12 Aug 2024 21:12:38 +0200 Subject: [PATCH] feat: exposing urls instead of ports --- features/caddy.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/features/caddy.nix b/features/caddy.nix index 7c63b5f..189a25a 100644 --- a/features/caddy.nix +++ b/features/caddy.nix @@ -2,13 +2,30 @@ { services.caddy = { enable = true; - virtualHosts.":80".extraConfig = '' - reverse_proxy :8082 - ''; virtualHosts.":5050".extraConfig = '' reverse_proxy :8083 ''; + + virtualHosts."sisyphe.normandy.hypervirtual.world".extraConfig = '' + reverse_proxy :8003 + ''; + + virtualHosts."git.hypervirtual.world".extraConfig = '' + reverse_proxy :3333 + ''; + + virtualHosts."photos.hypervirtual.world".extraConfig = '' + reverse_proxy :2342 + ''; + + virtualHosts."books.hypervirtual.world".extraConfig = '' + reverse_proxy :8083 + ''; + + virtualHosts."fish.hypervirtual.world".extraConfig = '' + reverse_proxy :3030 + ''; }; }