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

@ -129,8 +129,8 @@ nginx_configuration_directory: "/etc/nginx/conf.d/"
nginx_servers_directory: "{{nginx_configuration_directory}}servers/" # Contains server blogs
nginx_maps_directory: "{{nginx_configuration_directory}}maps/" # Contains mappins
nginx_upstreams_directory: "{{nginx_configuration_directory}}upstreams/" # Contains upstream configurations
nginx_well_known_root: "/usr/share/nginx/well-known/" # Path where well-known files are stored
nginx_homepage_root: "/usr/share/nginx/homepage/" # Path where the static homepage files are stored
nginx_well_known_root: "/usr/share/nginx/well-known/" # Path where well-known files are stored
nginx_homepage_root: "/usr/share/nginx/homepage/" # Path where the static homepage files are stored
## Domains
@ -146,7 +146,7 @@ domain_friendica: "friendica.{{top_domain}}"
domain_funkwhale: "music.{{top_domain}}"
domain_gitea: "git.{{top_domain}}"
domain_gitlab: "gitlab.{{top_domain}}"
domain_portfolio: "{{top_domain}}"
domain_portfolio: "{{top_domain}}"
domain_listmonk: "newsletter.{{top_domain}}"
domain_mailu: "{{system_email_host}}"
domain_mastodon: "microblog.{{top_domain}}"

View File

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

View File

@ -1,9 +1,24 @@
# 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
- 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

View File

@ -5,22 +5,22 @@ services:
ports:
- {{http_port}}:3000
volumes:
- data:/pds
- pds_data:/pds
env_file:
- /env
environment:
# Geben Sie hier Ihre Domain und Konfigurationsdetails an
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_SERVICE_DID: "did:web:{{ domain }}"
# See https://mattdyson.org/blog/2024/11/self-hosting-bluesky-pds/
PDS_SERVICE_HANDLE_DOMAINS: ."{{domain}}"
PDS_JWT_SECRET: <INSERT SECRET HERE>
PDS_ADMIN_PASSWORD: <INSERT ANOTHER SECRET HERE>
PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX: <INSERT KEY HEX HERE>
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}}"
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}}
LOG_ENABLED: true
@ -61,6 +61,6 @@ services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
{% include 'templates/docker/compose/volumes.yml.j2' %}
data:
pds_data:
{% include 'templates/docker/compose/networks.yml.j2' %}