chore(koi): migrate pds blobstore to s3

This commit is contained in:
alina 🌸 2024-11-28 02:20:37 +03:00
parent c1f21c0d06
commit 3ff48b3057
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 5 additions and 2 deletions

View file

@ -18,12 +18,14 @@ in {
volumes = [ volumes = [
"${./entrypoint.js}:/app/entrypoint.js" "${./entrypoint.js}:/app/entrypoint.js"
"/srv/bluesky-pds/data:/pds" "/srv/bluesky-pds/data:/pds"
"/srv/bluesky-pds/blobstore:/blobstore"
]; ];
environment = { environment = {
PDS_HOSTNAME = "pds.stupid.fish"; PDS_HOSTNAME = "pds.stupid.fish";
PDS_DATA_DIRECTORY = "/pds"; PDS_DATA_DIRECTORY = "/pds";
PDS_BLOBSTORE_DISK_LOCATION = "/blobstore"; PDS_BLOBSTORE_S3_BUCKET = "bluesky-blobstore";
PDS_BLOBSTORE_S3_REGION = "auto";
PDS_BLOBSTORE_S3_FORCE_PATH_STYLE = "true";
PDS_BLOBSTORE_S3_UPLOAD_TIMEOUT_MS = "60000";
PDS_DID_PLC_URL = "https://plc.directory"; PDS_DID_PLC_URL = "https://plc.directory";
PDS_BSKY_APP_VIEW_URL = "https://api.bsky.app"; PDS_BSKY_APP_VIEW_URL = "https://api.bsky.app";
PDS_BSKY_APP_VIEW_DID = "did:web:api.bsky.app"; PDS_BSKY_APP_VIEW_DID = "did:web:api.bsky.app";
@ -35,6 +37,7 @@ in {
}; };
environmentFiles = [ environmentFiles = [
# PDS_JWT_SECRET, PDS_ADMIN_PASSWORD, PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX # PDS_JWT_SECRET, PDS_ADMIN_PASSWORD, PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX
# + s3 credentials
config.desu.secrets.bluesky-pds-secrets.path config.desu.secrets.bluesky-pds-secrets.path
]; ];
user = builtins.toString UID; user = builtins.toString UID;

Binary file not shown.