diff --git a/bert/services/http/chandlerswift.com.nix b/bert/services/http/chandlerswift.com.nix index 0008ea2..6bf8c04 100644 --- a/bert/services/http/chandlerswift.com.nix +++ b/bert/services/http/chandlerswift.com.nix @@ -6,6 +6,10 @@ root * /srv/www/chandlerswift.com # hide .git # ??? + 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 + handle_errors { respond "{err.status_code} {err.status_text}" } diff --git a/bert/services/http/index.nix b/bert/services/http/index.nix index 3e4f574..25f1356 100644 --- a/bert/services/http/index.nix +++ b/bert/services/http/index.nix @@ -13,6 +13,7 @@ ./maps.chandlerswift.com.nix ./music.chandlerswift.com.nix ./preview.chandlerswift.com.nix + ./social.chandlerswift.com.nix ./stjohnscccc.org.nix ./swiftgang.net.nix ./whereis.chandlerswift.com.nix diff --git a/bert/services/http/social.chandlerswift.com.nix b/bert/services/http/social.chandlerswift.com.nix new file mode 100644 index 0000000..3ae0c29 --- /dev/null +++ b/bert/services/http/social.chandlerswift.com.nix @@ -0,0 +1,28 @@ +{ + services.gotosocial = { + enable = true; + settings = { + landing-page-user = "chandler"; + protocol = "https"; + host = "social.chandlerswift.com"; + account-domain = "chandlerswift.com"; + bind-address = "127.0.0.1"; + port = 8001; + # log-timestamp-format = ""; + storage-local-base-path = "/srv/gotosocial/storage"; + db-type = "sqlite"; + db-address = "/srv/gotosocial/database.sqlite"; + }; + }; + systemd.tmpfiles.settings."10-social-chandlerswift-com" = { + "/srv/gotosocial" = { + d = { + user = "gotosocial"; + }; + }; + }; + services.caddy.virtualHosts."social.chandlerswift.com".extraConfig = '' + encode zstd gzip + reverse_proxy localhost:8001 + ''; +}