Changement matrix debian -> NixOS

mise_a_niveau
RatCornu 2025-01-29 19:17:22 +01:00
parent 9580650207
commit e78010783b
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
9 changed files with 1 additions and 66 deletions

View File

@ -61,7 +61,6 @@ glob_reverseproxy:
- {from: intranet.crans.org, to: 172.16.10.156}
- {from: linx.crans.org, to: "172.16.10.119:8080"}
- {from: lists.crans.org, to: 172.16.10.110}
- {from: matrix.crans.org, to: "172.16.10.141:8008"}
- {from: mirrors.crans.org, to: 172.16.10.104}
- {from: nextcloud.crans.org, to: 172.16.10.137}
- {from: onlyoffice.crans.org, to: 172.16.10.148}
@ -83,8 +82,6 @@ glob_reverseproxy:
- {from: perso.crans.org, to: 172.16.10.31}
redirect_sites:
- {from: crans.org, to: www.crans.org}
# Aliases or legacy support
- {from: adopteunpingouin.crans.org, to: install-party.crans.org}
- {from: clubs.crans.org, to: perso.crans.org}
@ -103,4 +100,5 @@ glob_reverseproxy:
static_sites:
- autoconfig.crans.org
- install-party.crans.org
- crans.org
- www.crans.org

View File

@ -1,5 +0,0 @@
---
- name: Restart matrix-synapse
service:
name: matrix-synapse
state: restarted

View File

@ -1,29 +0,0 @@
---
- name: Configure Debian backports repository
template:
src: apt/sources.list.d/backports.list.j2
dest: /etc/apt/sources.list.d/backports.list
- name: Install matrix-synapse
apt:
update_cache: true
default_release: "{{ ansible_lsb.codename }}-backports"
name: matrix-synapse
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure matrix-synapse
template:
src: matrix-synapse/conf.d/{{ item }}.j2
dest: /etc/matrix-synapse/conf.d/{{ item }}
mode: 0640
owner: matrix-synapse
group: nogroup
loop:
- app_service_config_files.yaml
- database.yaml
- listeners.yaml
- report_stats.yaml
- server_name.yaml
notify: Restart matrix-synapse

View File

@ -1 +0,0 @@
deb {{ debian_mirror }} {{ ansible_lsb.codename }}-backports main contrib non-free

View File

@ -1 +0,0 @@
app_service_config_files: ["/var/local/matrix-appservice-irc/registration.yaml"]

View File

@ -1,9 +0,0 @@
database:
name: "psycopg2"
args:
user: "{{ matrix_synapse.database.user }}"
password: "{{ matrix_synapse.database.password }}"
database: "{{ matrix_synapse.database.name }}"
host: "{{ matrix_synapse.database.host }}"
cp_min: 5
cp_max: 10

View File

@ -1,14 +0,0 @@
listeners:
- port: 8008
tls: false
bind_addresses:
- '::'
- '0.0.0.0'
type: http
x_forwarded: true
resources:
- names: [client]
compress: true
- names: [federation]
compress: false

View File

@ -1,2 +0,0 @@
report_stats: false

View File

@ -1,2 +0,0 @@
server_name: crans.org