summaryrefslogtreecommitdiffstats
path: root/nginx
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-07-31 18:55:21 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2019-07-31 18:55:21 +0200
commitc8414824c0d14f835b2550a49952ea142aa985fb (patch)
treeef899a919612bd4f210850b1a9f9ee93cda006b6 /nginx
parent7f471a6682b269d5c59cefb11517d1403efa47d0 (diff)
downloadpillar-c8414824c0d14f835b2550a49952ea142aa985fb.tar.xz
matrix: Set ACAO/ACAM
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r--nginx/matrix_kyriasis_com.sls2
1 files changed, 2 insertions, 0 deletions
diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls
index 11311f3..5f56fae 100644
--- a/nginx/matrix_kyriasis_com.sls
+++ b/nginx/matrix_kyriasis_com.sls
@@ -61,6 +61,8 @@ nginx:
- proxy_buffering: "off"
- proxy_set_header: X-Forwarded-For $remote_addr
- proxy_set_header: Host $host
+ - add_header: "'Access-Control-Allow-Origin' '*'"
+ - add_header: "'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, HEAD, OPTIONS'"
- location /_synapse:
- proxy_pass: http://synapse_metrics