vault backup: 2025-01-18 14:47:22

This commit is contained in:
Nathan Price 2025-01-18 14:47:22 -05:00
parent ea3c4230ae
commit d8d0ac0250
Signed by: gravityfargo
SSH key fingerprint: SHA256:bjq+uA1U+9bFMd70q2wdNtwaYxGv84IBXalnYvZDKmg
4 changed files with 49 additions and 5 deletions

View file

@ -59,8 +59,7 @@ echo PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: $(openssl ecparam --name secp256
Full list of additional Environment Variables provided by bluesky upstream can be found in the [packages/pds/src/config/env.ts](https://github.com/bluesky-social/atproto/blob/main/packages/pds/src/config/env.ts)
By default, the image uses 1000:1000 as the UID:GID for the user. This can be changed by setting the `PUID` and `PGID` environment variables.
By default, the image uses 1000:1000 as the UID:GID for the user. This can be changed by setting the `PUID` and `PGID` environment variables. The compose element `hostname` must be the same value as `PDS_HOSTNAME`.
The compose element `hostname` must be the same value as `PDS_HOSTNAME`.
![[docker-compose]]
![[traefik]]
![[standalone]]

View file

@ -0,0 +1,21 @@
#### Middleware
I think file configs are cleaner than having a billion labels. This is not required, but it's nice to have.
```yaml
# middleware.yaml
http:
middlewares:
BlueskyHeaders:
headers:
accessControlAllowMethods:
- GET
- OPTIONS
- PUT
- POST
- DELETE
accessControlAllowHeaders: "*"
accessControlAllowOriginList: "*"
addVaryHeader: true
stsSeconds: 63072000
```

View file

@ -0,0 +1,24 @@
I do not run this, but it should be possible.
```yaml title="docker-compose.yml"
# Standalone, you'll need to add a proxy in front of this with SSL.
services:
bluesky-pds:
container_name: bluesky-pds
hostname: example.com
extra_hosts:
- "example.com:0.0.0.0" # domain:external_ip
image: code.modernleft.org/gravityfargo/bluesky-pds:latest
environment:
# Define variables here or in a .env file
PDS_JWT_SECRET: ...
PDS_ADMIN_PASSWORD: ...
PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: ...
PDS_HOSTNAME: example.com
PDS_EMAIL_SMTP_URL: ""
PDS_EMAIL_FROM_ADDRESS: ""
PUID: 1000
PGID: 1001
volumes:
- ./bluesky-pds:/pds
```

View file

@ -3,7 +3,7 @@
services:
bluesky-pds:
container_name: bluesky-pds
image: gravityfargo/bluesky-pds:0.4.74
image: code.modernleft.org/gravityfargo/bluesky-pds:latest
hostname: example.com
extra_hosts:
- "example.com:0.0.0.0" # domain:external_ip