summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2025-05-11 01:16:38 +0000
committerDevin Finlinson <devin.finlinson@pm.me>2025-05-11 01:16:38 +0000
commitbd792c0fd4d4a41bfc661537ca8d9323566e751f (patch)
tree848dc7e1da8731e261e6c918f45663e096f12827 /machines
parenta20d34525bd39953740540a697284bd21248d4b6 (diff)
by the power of reverse proxies
Diffstat (limited to 'machines')
-rw-r--r--machines/bosco/default.nix1
-rw-r--r--machines/bosco/reverse-proxy.nix11
2 files changed, 12 insertions, 0 deletions
diff --git a/machines/bosco/default.nix b/machines/bosco/default.nix
index b37887e..bb2867f 100644
--- a/machines/bosco/default.nix
+++ b/machines/bosco/default.nix
@@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
+ ./reverse-proxy.nix
../../modules/nixos/nix-common.nix
../../modules/nixos/environment.nix
diff --git a/machines/bosco/reverse-proxy.nix b/machines/bosco/reverse-proxy.nix
new file mode 100644
index 0000000..9d3e382
--- /dev/null
+++ b/machines/bosco/reverse-proxy.nix
@@ -0,0 +1,11 @@
+{ config, ... }: {
+ services.caddy = {
+ enable = true;
+ virtualHosts."foolcreekwireless.com" = {
+ serverAliases = [ "www.foolcreekwireless.com" ];
+ extraConfig = ''
+ reverse_proxy http://doretta
+ '';
+ };
+ };
+}