Mirror from bluesky-social/pds
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

move /data to /pds

+14 -14
+9 -9
README.md
··· 143 143 ### Set up the PDS directory 144 144 145 145 ```bash 146 - sudo mkdir /data 147 - sudo mkdir --parents /data/caddy/data 148 - sudo mkdir --parents /data/caddy/etc/caddy 146 + sudo mkdir /pds 147 + sudo mkdir --parents /pds/caddy/data 148 + sudo mkdir --parents /pds/caddy/etc/caddy 149 149 ``` 150 150 151 151 ### Create the Caddyfile ··· 153 153 Be sure to replace `example.com` with your own domain. 154 154 155 155 ```bash 156 - cat <<CADDYFILE | sudo tee /data/caddy/etc/caddy/Caddyfile 156 + cat <<CADDYFILE | sudo tee /pds/caddy/etc/caddy/Caddyfile 157 157 { 158 158 email you@example.com 159 159 } ··· 185 185 PDS_REPO_SIGNING_KEY_K256_PRIVATE_KEY_HEX="$(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32)" 186 186 PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX="$(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32)" 187 187 188 - cat <<PDS_CONFIG | sudo tee /data/pds.env 188 + cat <<PDS_CONFIG | sudo tee /pds/pds.env 189 189 PDS_HOSTNAME=${PDS_HOSTNAME} 190 190 PDS_JWT_SECRET=${PDS_JWT_SECRET} 191 191 PDS_ADMIN_PASSWORD=${PDS_ADMIN_PASSWORD} 192 192 PDS_REPO_SIGNING_KEY_K256_PRIVATE_KEY_HEX=${PDS_REPO_SIGNING_KEY_K256_PRIVATE_KEY_HEX} 193 193 PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX=${PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX} 194 - PDS_DB_SQLITE_LOCATION=/data/pds.sqlite 195 - PDS_BLOBSTORE_DISK_LOCATION=/data/blocks 194 + PDS_DB_SQLITE_LOCATION=/pds/pds.sqlite 195 + PDS_BLOBSTORE_DISK_LOCATION=/pds/blocks 196 196 PDS_DID_PLC_URL=https://plc.bsky-sandbox.dev 197 197 PDS_BSKY_APP_VIEW_ENDPOINT=https://api.bsky-sandbox.dev 198 198 PDS_BSKY_APP_VIEW_DID=did:web:api.bsky-sandbox.dev ··· 260 260 | PDS_ADMIN_PASSWORD | admin-pass | ✅ | Use a secure high-entropy string that is 32 characters in length | 261 261 | PDS_REPO_SIGNING_KEY_K256_PRIVATE_KEY_HEX | 3ee68... | ✅ | See above Generate Keys section - once set, do not change | 262 262 | PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX | e049f... | ✅ | See above Generate Keys section - once set, do not change | 263 - | PDS_DB_SQLITE_LOCATION | /data/pds.sqlite | ❌ | Or use `PDS_DB_POSTGRES_URL` depending on which database you intend to use | 264 - | PDS_BLOBSTORE_DISK_LOCATION | /data/blocks | ❌ | Only update if you update the mounted volume for your docker image as well | 263 + | PDS_DB_SQLITE_LOCATION | /pds/pds.sqlite | ❌ | Or use `PDS_DB_POSTGRES_URL` depending on which database you intend to use | 264 + | PDS_BLOBSTORE_DISK_LOCATION | /pds/blocks | ❌ | Only update if you update the mounted volume for your docker image as well | 265 265 | PDS_DID_PLC_URL | https://plc.bsky-sandbox.dev | ❌ | Do not adjust if you intend to federate with the Bluesky federation sandbox | 266 266 | PDS_BSKY_APP_VIEW_URL | https://api.bsky-sandbox.dev | ❌ | Do not adjust if you intend to federate with the Bluesky federation sandbox | 267 267 | PDS_BSKY_APP_VIEW_DID | did:web:api.bsky-sandbox.dev | ❌ | Do not adjust if you intend to federate with the Bluesky federation sandbox |
+5 -5
compose.yaml
··· 9 9 restart: unless-stopped 10 10 volumes: 11 11 - type: bind 12 - source: /data/caddy/data 12 + source: /pds/caddy/data 13 13 target: /data 14 14 - type: bind 15 - source: /data/caddy/etc/caddy 15 + source: /pds/caddy/etc/caddy 16 16 target: /etc/caddy 17 17 pds: 18 18 container_name: pds ··· 21 21 restart: unless-stopped 22 22 volumes: 23 23 - type: bind 24 - source: /data 25 - target: /data 24 + source: /pds 25 + target: /pds 26 26 env_file: 27 - - /data/pds.env 27 + - /pds/pds.env 28 28 watchtower: 29 29 container_name: watchtower 30 30 image: containrrr/watchtower:latest