roles/synapse: fix mistakes
This commit is contained in:
parent
4144a0647e
commit
f29eae7f1e
@ -24,11 +24,11 @@ http://{{ navidrome_domain }} {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if groups["synapse"] | length > 0 %}
|
{% if groups["synapse"] | length > 0 %}
|
||||||
http://{{ synapse_domain }} {
|
http://{{ matrix_domain }} {
|
||||||
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
|
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
|
||||||
reverse_proxy /_synapse/client/* {{ 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
|
reverse_proxy /_matrix/* {{ groups["synapse"][0] }}:8008
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -70,16 +70,14 @@ services:
|
|||||||
image: matrixdotorg/synapse:latest
|
image: matrixdotorg/synapse:latest
|
||||||
user: {{ user_synapse.uid }}:{{ user_synapse.group }}
|
user: {{ user_synapse.uid }}:{{ user_synapse.group }}
|
||||||
environment:
|
environment:
|
||||||
SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
SYNAPSE_CONFIG_PATH: /data/homeserver.yaml
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ dataroot }}/synapse/uploads:/data/uploads"
|
- "{{ dataroot }}/synapse/media_store:/data/media_store"
|
||||||
- "{{ dataroot }}/synapse/media:/data/media"
|
|
||||||
- "{{ dataroot }}/synapse/data:/data"
|
- "{{ dataroot }}/synapse/data:/data"
|
||||||
networks:
|
networks:
|
||||||
- navidrome
|
- navidrome
|
||||||
ports:
|
ports:
|
||||||
- "8448:8448/tcp"
|
|
||||||
- "8008:8008/tcp"
|
- "8008:8008/tcp"
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -14,8 +14,7 @@
|
|||||||
mode: "u=rwX,g=,o="
|
mode: "u=rwX,g=,o="
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ dataroot }}/synapse/data"
|
- "{{ dataroot }}/synapse/data"
|
||||||
- "{{ dataroot }}/synapse/uploads"
|
- "{{ dataroot }}/synapse/media_store"
|
||||||
- "{{ dataroot }}/synapse/media"
|
|
||||||
|
|
||||||
- name: Deploy Synapse config
|
- name: Deploy Synapse config
|
||||||
template:
|
template:
|
||||||
@ -25,6 +24,6 @@
|
|||||||
|
|
||||||
- name: Deploy Synapse logging config
|
- name: Deploy Synapse logging config
|
||||||
template:
|
template:
|
||||||
src: homeserver.yaml.j2
|
src: log.config.j2
|
||||||
dest: "{{ dataroot }}/synapse/data/log.config"
|
dest: "{{ dataroot }}/synapse/data/log.config"
|
||||||
lstrip_blocks: yes
|
lstrip_blocks: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user