diff --git a/bert/services/http/index.nix b/bert/services/http/index.nix index 751d1de..577cdf0 100644 --- a/bert/services/http/index.nix +++ b/bert/services/http/index.nix @@ -12,11 +12,14 @@ ./lawrencedeerclub.chandlerswift.com.nix ./maps.chandlerswift.com.nix ./music.chandlerswift.com.nix + ./nau-sidewalks.chandlerswift.com.nix ./preview.chandlerswift.com.nix + ./sharontrahan.com.nix ./social.chandlerswift.com.nix ./stjohnscccc.com.nix ./stjohnscccc.org.nix ./swiftgang.net.nix + ./troop352.us.nix ./whereis.chandlerswift.com.nix ]; diff --git a/bert/services/http/nau-sidewalks.chandlerswift.com.nix b/bert/services/http/nau-sidewalks.chandlerswift.com.nix new file mode 100644 index 0000000..3920b62 --- /dev/null +++ b/bert/services/http/nau-sidewalks.chandlerswift.com.nix @@ -0,0 +1,34 @@ +{config, ...}: { + services.caddy.virtualHosts."nau-sidewalks.chandlerswift.com".extraConfig = '' + reverse_proxy localhost:8003 + ''; +} + +# { config, pkgs, lib, ... }: +# let +# nau-sidewalks = pkgs.buildGoModule { +# pname = "nau-sidewalks"; +# version = "0.2.0"; +# src = pkgs.fetchgit { +# url = "https://git.chandlerswift.com/chandlerswift/nau-sidewalks"; +# rev = "v0.2.0"; +# sha256 = "sha256-D8f7jPcgs6yD9D+V4uy3FIBqqqZVehZM7hJ6tdERKqc="; +# }; +# vendorHash = "sha256-yKZdNhNyUOqywLy/RDjcziJ0FfrpuNcNMwyUAnRov60="; +# }; +# in +# { +# systemd.services.nau-sidewalks = { +# enable = true; +# after = [ "network.target" ]; +# wantedBy = [ "multi-user.target" ]; +# serviceConfig = { +# ExecStart = "${nau-sidewalks}/bin/nau-sidewalks"; +# Restart = "on-failure"; +# }; +# }; + +# services.caddy.virtualHosts."nau-sidewalks.chandlerswift.com".extraConfig = '' +# reverse_proxy localhost:8001 +# ''; +# } diff --git a/bert/services/http/sharontrahan.com.nix b/bert/services/http/sharontrahan.com.nix new file mode 100644 index 0000000..b6a759d --- /dev/null +++ b/bert/services/http/sharontrahan.com.nix @@ -0,0 +1,8 @@ +{ + services.caddy.virtualHosts."sharontrahan.com" = { + serverAliases = ["www.sharontrahan.com"]; + extraConfig = '' + redir https://fusion-living.com/ + ''; + }; +} diff --git a/bert/services/http/troop352.us.nix b/bert/services/http/troop352.us.nix new file mode 100644 index 0000000..bd92dd2 --- /dev/null +++ b/bert/services/http/troop352.us.nix @@ -0,0 +1,25 @@ +{ + services.caddy.virtualHosts."troop352.us" = { + serverAliases = ["www.troop352.us" "troop352-demo.chandlerswift.com"]; + extraConfig = '' + encode zstd gzip + file_server + root * /srv/www/troop352.us + + @notRoot { + not path / + not file + } + redir @notRoot / + + handle_errors { + respond "{err.status_code} {err.status_text}" + } + ''; + }; + systemd.tmpfiles.settings."10-troop352-us" = { + "/srv/www/troop352.us" = { + d = {}; + }; + }; +}