mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Add pub network for link previews + fix logrotate
This commit is contained in:
@@ -11,6 +11,11 @@
|
|||||||
# ansible.posix.synchronize:
|
# ansible.posix.synchronize:
|
||||||
# src: ./conduwuit-testing
|
# src: ./conduwuit-testing
|
||||||
# dest: /var/opt/
|
# dest: /var/opt/
|
||||||
|
- name: Enable netavark dhcp daemon
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: netavark-dhcp-proxy.socket
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
- name: Copy containers
|
- name: Copy containers
|
||||||
ansible.posix.synchronize:
|
ansible.posix.synchronize:
|
||||||
src: ../containers/
|
src: ../containers/
|
||||||
@@ -26,7 +31,7 @@
|
|||||||
ansible.posix.synchronize:
|
ansible.posix.synchronize:
|
||||||
src: ../logrotate.d/
|
src: ../logrotate.d/
|
||||||
dest: /etc/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:
|
ansible.builtin.find:
|
||||||
paths: /etc/logrotate.d
|
paths: /etc/logrotate.d
|
||||||
patterns: '*'
|
patterns: '*'
|
||||||
@@ -34,6 +39,10 @@
|
|||||||
- name: fix suspect line endings
|
- name: fix suspect line endings
|
||||||
replace: path={{item.path}} regexp="\r"
|
replace: path={{item.path}} regexp="\r"
|
||||||
with_items: "{{ output.files }}"
|
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
|
- name: Copy traefik config
|
||||||
ansible.posix.synchronize:
|
ansible.posix.synchronize:
|
||||||
src: ../traefik/
|
src: ../traefik/
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ Image=dock.mau.dev/maubot/maubot:latest
|
|||||||
# ReadOnly=true
|
# ReadOnly=true
|
||||||
Volume=/var/opt/maubot:/data:z,U
|
Volume=/var/opt/maubot:/data:z,U
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
# Network=web.network=
|
# Network=web.network
|
||||||
|
# Network=pub.network
|
||||||
|
|
||||||
Label="traefik.enable=true"
|
Label="traefik.enable=true"
|
||||||
Label="traefik.http.routers.maubot.rule=Host(`maubot.ellis.link`)"
|
Label="traefik.http.routers.maubot.rule=Host(`maubot.ellis.link`)"
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user