diff --git a/privfrontends/caddy-update.yaml b/privfrontends/caddy-update.yaml new file mode 100644 index 0000000..906556e --- /dev/null +++ b/privfrontends/caddy-update.yaml @@ -0,0 +1,12 @@ +--- +- name: Setup Caddy + hosts: privfrontends + roles: + - role: caddy-ansible + caddy_systemd_capabilities_enabled: true + caddy_config: "{{ lookup('template', './templates/Caddyfile.j2') }}" + caddy_user: "caddy" + caddy_home: "/var/lib/caddy" + caddy_packages: ["github.com/caddy-dns/rfc2136@master"] + # Static weekly builds of caddy with rfc2136 dns plugin + caddy_url_base: "https://cb.projectsegfau.lt/api/download" diff --git a/privfrontends/compose/hyperpipe/compose.yml.j2 b/privfrontends/compose/hyperpipe/compose.yml.j2 index 2db6967..af33a61 100644 --- a/privfrontends/compose/hyperpipe/compose.yml.j2 +++ b/privfrontends/compose/hyperpipe/compose.yml.j2 @@ -13,6 +13,7 @@ services: container_name: hyperpipe-backend environment: - HYP_PROXY={% if inventory_hostname == 'eu' %}proxy.piped.projectsegfau.lt{%else%}pipedproxy.{{inventory_hostname}}.projectsegfau.lt{%endif%} + restart: unless-stopped ports: - '3536:3000' diff --git a/privfrontends/playbook.yaml b/privfrontends/playbook.yaml index 02a2322..1d92bf9 100644 --- a/privfrontends/playbook.yaml +++ b/privfrontends/playbook.yaml @@ -1,15 +1,6 @@ --- - name: Setup Caddy hosts: privfrontends - roles: - - role: caddy-ansible - caddy_systemd_capabilities_enabled: true - caddy_config: "{{ lookup('template', './templates/Caddyfile.j2') }}" - caddy_user: "caddy" - caddy_home: "/var/lib/caddy" - caddy_packages: ["github.com/caddy-dns/rfc2136@master"] - # Static weekly builds of caddy with rfc2136 dns plugin - caddy_url_base: "https://cb.projectsegfau.lt/api/download" tasks: # This is run again so config still updates even if i dont run the role which isnt needed most of the time - name: Copy Caddyfile