Update Traefik syntax and add nginx SELinux perm

This commit is contained in:
Kris Lamoureux 2025-06-08 22:54:52 -04:00
parent d2473533d5
commit bda79d0b37
Signed by: kris
GPG Key ID: 105B748C1362EB96
2 changed files with 7 additions and 1 deletions

View File

@ -60,7 +60,7 @@ services:
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER:-wordpress}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
labels:
traefik.http.routers.wordpress.rule: Host(`${WORDPRESS_DOMAIN:-www.local.freeitathens.org}`,`${TRAEFIK_ACME_DOMAIN_MAIN:-local.freeitathens.org}`)
traefik.http.routers.wordpress.rule: Host(`${WORDPRESS_DOMAIN:-www.local.freeitathens.org}`) || Host(`${TRAEFIK_ACME_DOMAIN_MAIN:-local.freeitathens.org}`)
traefik.http.routers.wordpress.entrypoints: websecure
traefik.http.routers.wordpress.middlewares: "wwwredirect"
traefik.http.routers.wordpress.tls: true

View File

@ -72,6 +72,12 @@
state: present
update_cache: true
- name: Allow nginx to make network connections
ansible.posix.seboolean:
name: httpd_can_network_connect
state: true
persistent: true
- name: Deploy nginx proxy config
ansible.builtin.copy:
src: nginx.conf