Compare commits

...

4 commits

Author SHA1 Message Date
Chandler Swift b700b28160
bert: Add nau-sidewalks.chandlerswift.com 2025-02-14 19:29:31 -06:00
Chandler Swift 6a86383de9
bert: Add sharontrahan.com redirect 2025-02-14 19:17:43 -06:00
Chandler Swift 646eb50eba
bert: Redirect all troop352.us URLs to /
This is for backwards compatibility with the old site, which had e.g.
the calendar at `/calendar/`, etc.
2025-02-14 19:16:28 -06:00
Chandler Swift 8e73fab30f
bert: Add troop352.us 2025-02-14 19:16:28 -06:00
4 changed files with 70 additions and 0 deletions

View file

@ -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
];

View file

@ -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
# '';
# }

View file

@ -0,0 +1,8 @@
{
services.caddy.virtualHosts."sharontrahan.com" = {
serverAliases = ["www.sharontrahan.com"];
extraConfig = ''
redir https://fusion-living.com/
'';
};
}

View file

@ -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 = {};
};
};
}