mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
fix(web-app-semaphore): derive the web root from the canonical domain
lookup('tls', application_id, ...) aligns an app id to the network of the
vhost being rendered, so inside the onion sibling's vhost
SEMAPHORE_WEB_ROOT became the onion URL. The base-href rewrite from
bcb6c9f105 then saw domain == web root host, rendered nothing, and the
onion page kept loading its assets from clearnet. Looking the web root up
by the canonical domain keeps it clearnet everywhere, so the rewrite
applies on every other sibling; env.j2 and the OIDC redirect_url already
rendered the canonical value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a73a0a3f56
commit
a1d7835863
1 file changed
+1
-1
@@ -3,7 +3,7 @@ application_id: "web-app-semaphore"
|
||||
container_port: "{{ lookup('config', application_id, 'services.semaphore.ports.internal.http') }}"
|
||||
|
||||
SEMAPHORE_NAME: "{{ lookup('config', application_id, 'services.semaphore.name') }}"
|
||||
SEMAPHORE_WEB_ROOT: "{{ lookup('tls', application_id, 'url.base') | regex_replace('/+$', '') }}"
|
||||
SEMAPHORE_WEB_ROOT: "{{ lookup('tls', lookup('domain', application_id), 'url.base') | regex_replace('/+$', '') }}"
|
||||
SEMAPHORE_SIBLING_BASE_REWRITE: >-
|
||||
sub_filter '<base href="{{ SEMAPHORE_WEB_ROOT }}/">' '<base href="/">';
|
||||
|
||||
|
||||
Reference in new issue
Block a user