From 4a5c10849cb866702f4d9bcf167c4427c26d8272 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Tue, 12 Nov 2024 20:57:03 -0600 Subject: [PATCH] bert: Add preview.chandlerswift.com forwarder --- bert/services/http/index.nix | 1 + bert/services/http/preview.chandlerswift.com.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 bert/services/http/preview.chandlerswift.com.nix diff --git a/bert/services/http/index.nix b/bert/services/http/index.nix index f85f0e7..312faa9 100644 --- a/bert/services/http/index.nix +++ b/bert/services/http/index.nix @@ -8,6 +8,7 @@ ./katherineandchandler.com.nix ./maps.chandlerswift.com.nix ./music.chandlerswift.com.nix + ./preview.chandlerswift.com.nix ./stjohnscccc.org.nix ./swiftgang.net.nix ]; diff --git a/bert/services/http/preview.chandlerswift.com.nix b/bert/services/http/preview.chandlerswift.com.nix new file mode 100644 index 0000000..f0da071 --- /dev/null +++ b/bert/services/http/preview.chandlerswift.com.nix @@ -0,0 +1,9 @@ +{config, ...}: { + services.caddy.virtualHosts."preview.chandlerswift.com".extraConfig = '' + reverse_proxy oscar:4000 + + handle_errors { + respond "{err.status_code} {err.status_text}" + } + ''; +}