2025-02-07 21:48:24 -06:00
|
|
|
|
|
|
|
{
|
|
|
|
services.caddy.virtualHosts."chandlerswift.com".extraConfig = ''
|
|
|
|
encode zstd gzip
|
|
|
|
file_server
|
|
|
|
root * /srv/www/chandlerswift.com
|
|
|
|
# hide .git # ???
|
|
|
|
|
2025-02-07 21:50:13 -06:00
|
|
|
redir /.well-known/host-meta* https://social.chandlerswift.com{uri} permanent
|
|
|
|
redir /.well-known/webfinger* https://social.chandlerswift.com{uri} permanent
|
|
|
|
redir /.well-known/nodeinfo* https://social.chandlerswift.com{uri} permanent
|
|
|
|
|
2025-02-07 21:48:24 -06:00
|
|
|
handle_errors {
|
|
|
|
respond "{err.status_code} {err.status_text}"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
services.caddy.virtualHosts."www.chandlerswift.com".extraConfig = "redir https://chandlerswift.com{uri}";
|
|
|
|
systemd.tmpfiles.settings."10-chandlerswift-com" = {
|
|
|
|
"/srv/www/chandlerswift.com" = {
|
|
|
|
d = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|