homelab_flarum/roles/flarum/tasks/add_to_cloudflare_tunnel.yml

16 lines
441 B
YAML
Raw Normal View History

2024-03-05 08:32:15 -06:00
---
- name: Add Cloudflare Tunnel route
become: yes
lineinfile:
path: /etc/cloudflared/config.yaml
regexp: "- hostname: flarum\.bubblesthebunny\.com[\W]*service: https:\/\/localhost:8544"
line: |-
- hostname: flarum.bubblesthebunny.com
service: https://localhost:8544
insertbefore: "- service: http_status:404"
- name: Restart Cloudflared
become: yes
systemd:
name: cloudflared
state: restarted