Logo
Explore Help
Sign In
admin/authser
1
0
Fork 0
You've already forked authser
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
40c36ef299f46452827f7fce1fc89b75c9a7e70f
authser/ansible/templates/e-auth.conf.j2

9 lines
232 B
Plaintext
Raw Normal View History

Add Ansible playbook for on-server deploy Self-contained playbook intended to be run locally on the target server, where this repo is already cloned (typically at /var/www/e-auth). No SSH / inventory needed — hosts: localhost with connection: local. What it does: - Installs Docker Engine + compose plugin from the official repo (idempotent, no-op if already present). - Ensures /etc/caddy/site exists and templates the vhost file at /etc/caddy/site/e-auth.conf with the Cloudflare DNS-01 token for caddy-dns/cloudflare, reverse-proxying to 127.0.0.1:9450. - Validates the Caddy config and reloads the service on change. - Runs `docker compose pull` and `docker compose up -d` from the repo root. Assumes Caddy is already installed with the caddy-dns/cloudflare plugin and loads per-site files from /etc/caddy/site/*.conf. Usage (on the server): cd /var/www/e-auth/ansible && ansible-playbook deploy.yml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 15:45:15 +02:00
# Managed by Ansible - ecosplay-auth
# Reverse proxy for {{ auth_domain }} -> local Keycloak container on :{{ keycloak_local_port }}
{{ auth_domain }} {
encode gzip zstd
reverse_proxy 127.0.0.1:{{ keycloak_local_port }}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API