diff --git a/docker/bluesky-pds.md b/docker/bluesky-pds.md index 8311e1d..142a06f 100644 --- a/docker/bluesky-pds.md +++ b/docker/bluesky-pds.md @@ -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]] \ No newline at end of file +![[traefik]] +![[standalone]] diff --git a/docker/bluesky-pds/middleware.md b/docker/bluesky-pds/middleware.md new file mode 100644 index 0000000..b4fb6b3 --- /dev/null +++ b/docker/bluesky-pds/middleware.md @@ -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 +``` diff --git a/docker/bluesky-pds/standalone.md b/docker/bluesky-pds/standalone.md new file mode 100644 index 0000000..19e7e0d --- /dev/null +++ b/docker/bluesky-pds/standalone.md @@ -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 +``` diff --git a/docker/bluesky-pds/docker-compose.md b/docker/bluesky-pds/traefik.md similarity index 95% rename from docker/bluesky-pds/docker-compose.md rename to docker/bluesky-pds/traefik.md index fa1db2f..a901437 100644 --- a/docker/bluesky-pds/docker-compose.md +++ b/docker/bluesky-pds/traefik.md @@ -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