Fix caddy handler and add port to site addresses

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-25 09:00:38 -08:00
commit e590945006
2 changed files with 6 additions and 13 deletions

View file

@ -1,13 +1,6 @@
---
- name: Restart caddy
block:
- name: Unload caddy LaunchAgent
ansible.builtin.command:
cmd: launchctl unload ~/Library/LaunchAgents/mcquack.eblume.caddy.plist
failed_when: false
changed_when: true
- name: Load caddy LaunchAgent
ansible.builtin.command:
cmd: launchctl load ~/Library/LaunchAgents/mcquack.eblume.caddy.plist
changed_when: true
ansible.builtin.shell: |
launchctl unload ~/Library/LaunchAgents/mcquack.eblume.caddy.plist 2>/dev/null || true
launchctl load ~/Library/LaunchAgents/mcquack.eblume.caddy.plist
changed_when: true

View file

@ -15,7 +15,7 @@
}
# Wildcard certificate for all services
*.{{ caddy_domain }} {
*.{{ caddy_domain }}:{{ caddy_https_port }} {
tls {
dns gandi {
api_token {file.{{ caddy_gandi_token_file }}}
@ -36,7 +36,7 @@
}
# Base domain (ops.eblu.me)
{{ caddy_domain }} {
{{ caddy_domain }}:{{ caddy_https_port }} {
tls {
dns gandi {
api_token {file.{{ caddy_gandi_token_file }}}