matrix
histausse 3 years ago
parent 45906e095d
commit 94e8b52948
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -1,6 +1,6 @@
---
matrix_server_name: pp.intra
synapse_postgre_user_pwd: "{{ ²vault_synapse_postgre_user_pwd }}"
synapse_postgre_user_pwd: "{{ vault_synapse_postgre_user_pwd }}"
matrix_max_upload_size: 50M
matrix_registration_shared_secret: "{{ vault_matrix_registration_shared_secret }}"
matrix_macaroon_secret: "{{ vault_matrix_macaroon_secret }}"

@ -1,4 +1,13 @@
---
- name: Install openssl
apt:
name: python3-openssl
state: latest
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Ensure the cert directory exists
file:
path: /var/certificates

@ -1582,6 +1582,7 @@ oidc_providers:
# jwks_uri: "https://accounts.example.com/.well-known/jwks.json"
# skip_verification: true
# user_mapping_provider:
{% raw %}
# config:
# subject_claim: "id"
# localpart_template: "{{ user.login }}"
@ -1590,6 +1591,7 @@ oidc_providers:
# attribute_requirements:
# - attribute: userGroup
# value: "synapseUsers"
{% endraw %}
# Enable Central Authentication Service (CAS) for registration and login.

@ -1,26 +0,0 @@
{{ ansible_managed | comment }}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
# For the federation port
listen 8448 ssl http2 default_server;
listen [::]:8448 ssl http2 default_server;
server_name {{ matrix_server_name }};
ssl_certificate /var/certificates/{{ matrix_server_name }}_cert.pem;
ssl_certificate_key /var/certificates/{{ matrix_server_name }}_privkey.pem;
location ~* ^(\/_matrix|\/_synapse\/client) {
proxy_pass http://localhost:8008;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
# Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
client_max_body_size {{ matrix_max_upload_size }};
}
}
Loading…
Cancel
Save