bert: Add gotosocial on social.chandlerswift.com

This commit is contained in:
Chandler Swift 2025-02-07 21:50:13 -06:00
parent f2e7d24b2f
commit 510672f779
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
3 changed files with 33 additions and 0 deletions

View file

@ -6,6 +6,10 @@
root * /srv/www/chandlerswift.com root * /srv/www/chandlerswift.com
# hide .git # ??? # 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 { handle_errors {
respond "{err.status_code} {err.status_text}" respond "{err.status_code} {err.status_text}"
} }

View file

@ -13,6 +13,7 @@
./maps.chandlerswift.com.nix ./maps.chandlerswift.com.nix
./music.chandlerswift.com.nix ./music.chandlerswift.com.nix
./preview.chandlerswift.com.nix ./preview.chandlerswift.com.nix
./social.chandlerswift.com.nix
./stjohnscccc.org.nix ./stjohnscccc.org.nix
./swiftgang.net.nix ./swiftgang.net.nix
./whereis.chandlerswift.com.nix ./whereis.chandlerswift.com.nix

View file

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