Add atproto PDS server
This commit is contained in:
@@ -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" ];
|
||||||
|
|||||||
@@ -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
14
modules/pds.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user