Add pub network for link previews + fix logrotate

This commit is contained in:
Jade Ellis 2024-12-07 22:15:30 +00:00
parent d05cb930ff
commit 264c8fc68e
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
3 changed files with 19 additions and 2 deletions

View file

@ -11,6 +11,11 @@
# ansible.posix.synchronize:
# src: ./conduwuit-testing
# dest: /var/opt/
- name: Enable netavark dhcp daemon
ansible.builtin.systemd:
name: netavark-dhcp-proxy.socket
enabled: true
state: started
- name: Copy containers
ansible.posix.synchronize:
src: ../containers/
@ -26,7 +31,7 @@
ansible.posix.synchronize:
src: ../logrotate.d/
dest: /etc/logrotate.d
- name: find files with possible suspect line endings
- name: find files with possible suspect line endings or perms
ansible.builtin.find:
paths: /etc/logrotate.d
patterns: '*'
@ -34,6 +39,10 @@
- name: fix suspect line endings
replace: path={{item.path}} regexp="\r"
with_items: "{{ output.files }}"
- name: fix logrotate permissions
file: path={{item.path}} mode=644 user=root group=root
with_items: "{{ output.files }}"
become_user: root
- name: Copy traefik config
ansible.posix.synchronize:
src: ../traefik/

View file

@ -14,7 +14,8 @@ Image=dock.mau.dev/maubot/maubot:latest
# ReadOnly=true
Volume=/var/opt/maubot:/data:z,U
AutoUpdate=registry
# Network=web.network=
# Network=web.network
# Network=pub.network
Label="traefik.enable=true"
Label="traefik.http.routers.maubot.rule=Host(`maubot.ellis.link`)"

View file

@ -0,0 +1,7 @@
[Network]
DisableDNS=false
IPv6=true
Subnet=10.89.1.0/24
Gateway=10.89.1.1
Driver=macvlan
Options=parent=eno1