Add atproto PDS server

This commit is contained in:
2026-01-22 18:42:41 -05:00
parent 0f585eef94
commit de659f1eea
3 changed files with 29 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
./modules/nginx.nix ./modules/nginx.nix
./modules/gitea.nix ./modules/gitea.nix
./modules/pds.nix
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -22,6 +22,8 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
# Core Web Directory # Core Web Directory
"d /var/www/tty.garden - root nginx -" "d /var/www/tty.garden - root nginx -"
# Well-known storage
"d /var/www/well-known - root nginx -"
# Mirrors # Mirrors
"d /var/www/mirror - root nginx -" "d /var/www/mirror - root nginx -"
"d /var/www/mirror/maple - ahill nginx -" "d /var/www/mirror/maple - ahill nginx -"
@@ -41,6 +43,10 @@
# TODO: User public_html folders # TODO: User public_html folders
# Use disable symlinks with `if_not_owner` and from=$HOME for user # Use disable symlinks with `if_not_owner` and from=$HOME for user
locations."^~ /.well-known/" = {
alias = "/var/www/well-known/";
};
}; };
"seed.tty.garden" = vhostDefault // { "seed.tty.garden" = vhostDefault // {
locations."/" = { locations."/" = {
@@ -54,6 +60,14 @@
extraConfig = "autoindex on;"; extraConfig = "autoindex on;";
}; };
}; };
"pds.tty.garden" = vhostDefault // {
serverAliases = [ ".pds.tty.garden" ];
locations."/" = {
proxyPass = "http://127.0.0.1:3001";
proxyWebsockets = true;
};
};
}; };
}; };
} }

14
modules/pds.nix Normal file
View File

@@ -0,0 +1,14 @@
{config, ...}:
{
services.bluesky-pds = {
enable = true;
environmentFiles = [ "/root/pds_environment" ];
settings = {
PDS_PORT = 3001;
PDS_HOSTNAME = "pds.tty.garden";
PDS_ADMIN_EMAIL = "nickmcdaniel00@gmail.com";
};
};
}