Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
558 B

  1. server {
  2. listen 443 ssl http2;
  3. listen [::]:443 ssl http2;
  4. server_name {{ hostname_matrix }};
  5. server_tokens off;
  6. root /dev/null;
  7. ssl on;
  8. ssl_certificate /acmetool-certs/live/{{ hostname_matrix }}/fullchain;
  9. ssl_certificate_key /acmetool-certs/live/{{ hostname_matrix }}/privkey;
  10. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  11. ssl_prefer_server_ciphers on;
  12. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  13. location /_matrix {
  14. proxy_pass http://synapse:8008;
  15. proxy_set_header X-Forwarded-For $remote_addr;
  16. }
  17. }