From 6b54c0fcf97e845ee72241b527976cf9792bbea0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 17 Jan 2025 18:31:49 +0100 Subject: [PATCH] changed healthcheck und handlers --- roles/docker-bluesky/README.md | 3 ++- roles/docker-bluesky/templates/docker-compose.yml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/docker-bluesky/README.md b/roles/docker-bluesky/README.md index c8f2bf3c..ce13573b 100644 --- a/roles/docker-bluesky/README.md +++ b/roles/docker-bluesky/README.md @@ -33,4 +33,5 @@ curl -X POST https://your-pds-domain/xrpc/com.atproto.server.createAccount \ - https://therobbiedavis.com/selfhosting-bluesky-with-docker-and-swag/ - https://cprimozic.net/notes/posts/notes-on-self-hosting-bluesky-pds-alongside-other-services/ - https://github.com/bluesky-social/pds -- https://chatgpt.com/c/678a2eb6-145c-800f-bf51-ff706981a928 \ No newline at end of file +- https://chatgpt.com/c/678a2eb6-145c-800f-bf51-ff706981a928 +- https://www.youtube.com/watch?v=7_AG50u7D6c \ No newline at end of file diff --git a/roles/docker-bluesky/templates/docker-compose.yml.j2 b/roles/docker-bluesky/templates/docker-compose.yml.j2 index 77523c78..a964ba76 100644 --- a/roles/docker-bluesky/templates/docker-compose.yml.j2 +++ b/roles/docker-bluesky/templates/docker-compose.yml.j2 @@ -11,7 +11,7 @@ services: PDS_DB__POSTGRES__URL: "postgres://{{ database_username }}:{{ database_password }}@{{ database_host }}:5432/{{ database_name }}" PDS_SERVICE_DID: "did:web:{{domain_api}}" # See https://mattdyson.org/blog/2024/11/self-hosting-bluesky-pds/ - PDS_SERVICE_HANDLE_DOMAINS: ".{{domain_api}}" + PDS_SERVICE_HANDLE_DOMAINS: ".{{top_domain}}" PDS_JWT_SECRET: "{{bluesky_pds_jwt_secret}}" PDS_ADMIN_PASSWORD: "{{bluesky_pds_admin_password}}" PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: "{{bluesky_pds_plc_rotation_key_k256_private_key_hex}}" @@ -31,7 +31,7 @@ services: ports: - "127.0.0.1:{{http_port_api}}:3000" healthcheck: - test: ["CMD", "wget", "--spider", "http://127.0.0.1:3000"] + test: ["CMD", "wget", "--spider", "http://127.0.0.1:3000/xrpc/_health"] interval: 1m timeout: 10s retries: 3