29 lines
738 B
Nix
29 lines
738 B
Nix
{
|
|
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
|
|
'';
|
|
}
|