vault backup: 2025-01-18 14:47:22
This commit is contained in:
parent
ea3c4230ae
commit
d8d0ac0250
4 changed files with 49 additions and 5 deletions
|
@ -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)
|
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`.
|
![[traefik]]
|
||||||
|
![[standalone]]
|
||||||
![[docker-compose]]
|
|
||||||
|
|
21
docker/bluesky-pds/middleware.md
Normal file
21
docker/bluesky-pds/middleware.md
Normal 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
|
||||||
|
```
|
24
docker/bluesky-pds/standalone.md
Normal file
24
docker/bluesky-pds/standalone.md
Normal 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
|
||||||
|
```
|
|
@ -3,7 +3,7 @@
|
||||||
services:
|
services:
|
||||||
bluesky-pds:
|
bluesky-pds:
|
||||||
container_name: bluesky-pds
|
container_name: bluesky-pds
|
||||||
image: gravityfargo/bluesky-pds:0.4.74
|
image: code.modernleft.org/gravityfargo/bluesky-pds:latest
|
||||||
hostname: example.com
|
hostname: example.com
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "example.com:0.0.0.0" # domain:external_ip
|
- "example.com:0.0.0.0" # domain:external_ip
|
Loading…
Reference in a new issue