Updated bluesky variables and implemented playbook

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-17 13:40:31 +01:00
parent 4bfbb94609
commit dda032ff44
4 changed files with 38 additions and 14 deletions

View File

@ -286,6 +286,15 @@
domain: "{{domain_portfolio}}" domain: "{{domain_portfolio}}"
http_port: 8029 http_port: 8029
- name: setup bluesky
hosts: bluesky
become: true
roles:
- role: docker-bluesky
vars:
domain: "{{domain_bluesky}}"
http_port: 8030
# Native Webserver Roles # Native Webserver Roles
- name: setup nginx-static-repositorys - name: setup nginx-static-repositorys
hosts: nginx-static-repositorys hosts: nginx-static-repositorys

View File

@ -1,9 +1,24 @@
# DRAFT role docker-bluesky # DRAFT role docker-bluesky
UPtIn/VqlSyN4a8jO7FtwUxFqcHP5yqCXEzcDCRxRrvf1DPDtuPz7RS8yZ4GQq8K
CT+h2/EdjnMrdIcaPa1XRw==
jtEVJfLEfonUNkFhBsThHXAFhBI2f2u5fwLxCaXuXYvTrRIMl3ju1TTEzrGNw4cYsxdUZ4+4HDx5dkpGzd3HGA== ## Set variables
### bluesky_pds_jwt_secret
```bash
openssl rand -base64 64 | tr -d '\n'
```
for
### bluesky_pds_plc_rotation_key_k256_private_key_hex
openssl rand -hex 32
### bluesky_pds_admin_password
openssl rand -base64 16
### bluesky_database_password
openssl rand -base64 32
## more information ## more information
- https://therobbiedavis.com/selfhosting-bluesky-with-docker-and-swag/ - https://therobbiedavis.com/selfhosting-bluesky-with-docker-and-swag/
- https://cprimozic.net/notes/posts/notes-on-self-hosting-bluesky-pds-alongside-other-services/ - https://cprimozic.net/notes/posts/notes-on-self-hosting-bluesky-pds-alongside-other-services/
- https://github.com/bluesky-social/pds - https://github.com/bluesky-social/pds
- https://chatgpt.com/c/678a2eb6-145c-800f-bf51-ff706981a928

View File

@ -5,22 +5,22 @@ services:
ports: ports:
- {{http_port}}:3000 - {{http_port}}:3000
volumes: volumes:
- data:/pds - pds_data:/pds
env_file: env_file:
- /env - /env
environment: environment:
# Geben Sie hier Ihre Domain und Konfigurationsdetails an # Geben Sie hier Ihre Domain und Konfigurationsdetails an
PDS_HOSTNAME: "{{domain}}" PDS_HOSTNAME: "{{domain}}"
PDS_ADMIN_EMAIL: "{{PDS_ADMIN_EMAIL}}" PDS_ADMIN_EMAIL: "{{administrator_email}}"
PDS_DB__POSTGRES__URL: "postgres://{{ database_username }}:{{ database_password }}@{{ database_host }}:5432/{{ database_name }}" PDS_DB__POSTGRES__URL: "postgres://{{ database_username }}:{{ database_password }}@{{ database_host }}:5432/{{ database_name }}"
PDS_SERVICE_DID: "did:web:{{ domain }}" PDS_SERVICE_DID: "did:web:{{ domain }}"
# See https://mattdyson.org/blog/2024/11/self-hosting-bluesky-pds/ # See https://mattdyson.org/blog/2024/11/self-hosting-bluesky-pds/
PDS_SERVICE_HANDLE_DOMAINS: ."{{domain}}" PDS_SERVICE_HANDLE_DOMAINS: ."{{domain}}"
PDS_JWT_SECRET: <INSERT SECRET HERE> PDS_JWT_SECRET: "{{bluesky_pds_jwt_secret}}"
PDS_ADMIN_PASSWORD: <INSERT ANOTHER SECRET HERE> PDS_ADMIN_PASSWORD: "{{bluesky_pds_admin_password}}"
PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: <INSERT KEY HEX HERE> PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: "{{bluesky_pds_plc_rotation_key_k256_private_key_hex}}"
PDS_CRAWLERS: https://bsky.network PDS_CRAWLERS: https://bsky.network
PDS_EMAIL_SMTP_URL: smtps://{{system_email_username}}:{{system_email_passwort}}@{{system_email_host}}:{{system_email_port}}/ PDS_EMAIL_SMTP_URL: smtps://{{system_email_username}}:{{system_email_password}}@{{system_email_host}}:{{system_email_port}}/
PDS_EMAIL_FROM_ADDRESS: {{system_email_from}} PDS_EMAIL_FROM_ADDRESS: {{system_email_from}}
LOG_ENABLED: true LOG_ENABLED: true
@ -61,6 +61,6 @@ services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %} {% include 'templates/docker/services/' + database_type + '.yml.j2' %}
{% include 'templates/docker/compose/volumes.yml.j2' %} {% include 'templates/docker/compose/volumes.yml.j2' %}
data: pds_data:
{% include 'templates/docker/compose/networks.yml.j2' %} {% include 'templates/docker/compose/networks.yml.j2' %}