From fa3de783364e393eaa70c1aee1995feadf7bf1b4 Mon Sep 17 00:00:00 2001 From: gov Date: Sun, 20 Sep 2026 18:17:21 -0400 Subject: [PATCH] fix: less opinionated pds operator hostname --- playbook.yml | 2 +- templates/Caddyfile.j2 | 2 +- templates/pds-operator.env.j2 | 2 +- vars/main.yml.example | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/playbook.yml b/playbook.yml index 13365d4..1135bfc 100644 --- a/playbook.yml +++ b/playbook.yml @@ -253,7 +253,7 @@ - name: Operator health check uri: - url: "https://operator.{{ pds_hostname }}/oauth/client-metadata.json" + url: "https://{{ pds_operator_hostname }}/oauth/client-metadata.json" method: GET status_code: 200 retries: 5 diff --git a/templates/Caddyfile.j2 b/templates/Caddyfile.j2 index 1a4b312..c3f1ca6 100644 --- a/templates/Caddyfile.j2 +++ b/templates/Caddyfile.j2 @@ -16,7 +16,7 @@ reverse_proxy http://localhost:3000 } {% if pds_operator_enabled is defined and pds_operator_enabled | bool %} -operator.{{ pds_hostname }} { +{{ pds_operator_hostname }} { log { output stdout format json diff --git a/templates/pds-operator.env.j2 b/templates/pds-operator.env.j2 index 3d1b6db..30855b0 100644 --- a/templates/pds-operator.env.j2 +++ b/templates/pds-operator.env.j2 @@ -5,4 +5,4 @@ RELAY_HOSTNAME=bsky.network SESSION_SECRET={{ pds_operator_session_secret }} PORT=8787 APPVIEW_URL=https://bsky.app -DASHBOARD_URL=https://operator.{{ pds_hostname }} +DASHBOARD_URL=https://{{ pds_operator_hostname }} diff --git a/vars/main.yml.example b/vars/main.yml.example index 7c3e938..f877d1e 100644 --- a/vars/main.yml.example +++ b/vars/main.yml.example @@ -55,3 +55,4 @@ pds_crawlers: https://relay.fire.hose.cam # relay/crawler endpoint pds_operator_enabled: true pds_operator_repo: https://tangled.org/brookie.blog/pds-operator pds_operator_version: main +pds_operator_hostname: pds-operator.cosocial.ca