Compare commits
No commits in common. "fff9f1e9daff20f8897628f392d242e6e62e5ea3" and "8b5e8a276b87fd75924b3fc4aa49b7999d450327" have entirely different histories.
fff9f1e9da
...
8b5e8a276b
File diff suppressed because it is too large
Load diff
|
@ -1,37 +0,0 @@
|
||||||
version: 1
|
|
||||||
|
|
||||||
formatters:
|
|
||||||
precise:
|
|
||||||
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
|
|
||||||
|
|
||||||
filters:
|
|
||||||
context:
|
|
||||||
(): synapse.util.logcontext.LoggingContextFilter
|
|
||||||
request: ""
|
|
||||||
|
|
||||||
handlers:
|
|
||||||
file:
|
|
||||||
class: logging.handlers.RotatingFileHandler
|
|
||||||
formatter: precise
|
|
||||||
filename: /data/homeserver.log
|
|
||||||
maxBytes: 104857600
|
|
||||||
backupCount: 10
|
|
||||||
filters: [context]
|
|
||||||
encoding: utf8
|
|
||||||
console:
|
|
||||||
class: logging.StreamHandler
|
|
||||||
formatter: precise
|
|
||||||
filters: [context]
|
|
||||||
|
|
||||||
loggers:
|
|
||||||
synapse:
|
|
||||||
level: INFO
|
|
||||||
|
|
||||||
synapse.storage.SQL:
|
|
||||||
# beware: increasing this to DEBUG will make synapse log sensitive
|
|
||||||
# information such as access tokens.
|
|
||||||
level: INFO
|
|
||||||
|
|
||||||
root:
|
|
||||||
level: INFO
|
|
||||||
handlers: [file, console]
|
|
|
@ -3,20 +3,11 @@
|
||||||
file:
|
file:
|
||||||
name: "{{ matrix.volume_folder }}/{{ volume }}"
|
name: "{{ matrix.volume_folder }}/{{ volume }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "991"
|
|
||||||
group: "991"
|
|
||||||
loop:
|
loop:
|
||||||
- "data"
|
- "db"
|
||||||
- "data/uploads"
|
|
||||||
- "data/media"
|
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: volume
|
loop_var: volume
|
||||||
|
|
||||||
- name: create matrix DB folder
|
|
||||||
file:
|
|
||||||
name: "{{ matrix.volume_folder }}/db"
|
|
||||||
state: "directory"
|
|
||||||
|
|
||||||
- name: create riot volume folders
|
- name: create riot volume folders
|
||||||
file:
|
file:
|
||||||
name: "{{ riot.volume_folder }}/{{ volume }}"
|
name: "{{ riot.volume_folder }}/{{ volume }}"
|
||||||
|
@ -50,16 +41,6 @@
|
||||||
src: files/configs/matrix/vhost-matrix
|
src: files/configs/matrix/vhost-matrix
|
||||||
dest: "{{ nginx.volume_folder }}/vhost/{{ matrix.domain }}"
|
dest: "{{ nginx.volume_folder }}/vhost/{{ matrix.domain }}"
|
||||||
|
|
||||||
- name: upload homeserver.yaml
|
|
||||||
template:
|
|
||||||
src: "files/configs/matrix/homeserver.yaml"
|
|
||||||
dest: "{{ matrix.volume_folder }}/data/homeserver.yaml"
|
|
||||||
|
|
||||||
- name: upload matrix logging config
|
|
||||||
template:
|
|
||||||
src: "files/configs/matrix/matrix.data.coop.log.config"
|
|
||||||
dest: "{{ matrix.volume_folder }}/data/matrix.data.coop.log.config"
|
|
||||||
|
|
||||||
- name: matrix database container
|
- name: matrix database container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: matrix_db
|
name: matrix_db
|
||||||
|
@ -83,11 +64,15 @@
|
||||||
- name: matrix
|
- name: matrix
|
||||||
published_ports:
|
published_ports:
|
||||||
- "8008"
|
- "8008"
|
||||||
volumes:
|
|
||||||
- "{{ matrix.volume_folder }}/data:/data"
|
|
||||||
env:
|
env:
|
||||||
SYNAPSE_CONFIG_PATH: "/data/homeserver.yaml"
|
SYNAPSE_SERVER_NAME: "{{ base_domain }}"
|
||||||
SYNAPSE_LOG_LEVEL: "INFO"
|
SYNAPSE_REPORT_STATS: "False"
|
||||||
|
SYNAPSE_ENABLE_REGISTRATION: "True"
|
||||||
|
SYNAPSE_LOG_LEVEL: "ERROR"
|
||||||
|
SYNAPSE_NO_TLS: "1"
|
||||||
|
POSTGRES_HOST: "matrix_db"
|
||||||
|
POSTGRES_USER: "synapse"
|
||||||
|
POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}"
|
||||||
VIRTUAL_HOST: "{{ matrix.domain }}"
|
VIRTUAL_HOST: "{{ matrix.domain }}"
|
||||||
VIRTUAL_PORT: "8008"
|
VIRTUAL_PORT: "8008"
|
||||||
LETSENCRYPT_HOST: "{{ matrix.domain }}"
|
LETSENCRYPT_HOST: "{{ matrix.domain }}"
|
||||||
|
|
Loading…
Reference in a new issue