roles/synapse: fix mistakes

This commit is contained in:
dogeystamp 2023-09-09 09:05:05 -04:00
parent 4144a0647e
commit f29eae7f1e
3 changed files with 6 additions and 9 deletions

View File

@ -24,11 +24,11 @@ http://{{ navidrome_domain }} {
{% endif %}
{% if groups["synapse"] | length > 0 %}
http://{{ synapse_domain }} {
http://{{ matrix_domain }} {
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
reverse_proxy /_synapse/client/* {{ groups["synapse"][0] }}:8008
}
{{ synapse_domain }}:8448 {
{{ matrix_domain }}:8448 {
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
}
{% endif %}

View File

@ -70,16 +70,14 @@ services:
image: matrixdotorg/synapse:latest
user: {{ user_synapse.uid }}:{{ user_synapse.group }}
environment:
SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
SYNAPSE_CONFIG_PATH: /data/homeserver.yaml
restart: unless-stopped
volumes:
- "{{ dataroot }}/synapse/uploads:/data/uploads"
- "{{ dataroot }}/synapse/media:/data/media"
- "{{ dataroot }}/synapse/media_store:/data/media_store"
- "{{ dataroot }}/synapse/data:/data"
networks:
- navidrome
ports:
- "8448:8448/tcp"
- "8008:8008/tcp"
{% endif %}

View File

@ -14,8 +14,7 @@
mode: "u=rwX,g=,o="
with_items:
- "{{ dataroot }}/synapse/data"
- "{{ dataroot }}/synapse/uploads"
- "{{ dataroot }}/synapse/media"
- "{{ dataroot }}/synapse/media_store"
- name: Deploy Synapse config
template:
@ -25,6 +24,6 @@
- name: Deploy Synapse logging config
template:
src: homeserver.yaml.j2
src: log.config.j2
dest: "{{ dataroot }}/synapse/data/log.config"
lstrip_blocks: yes