From d06fc65af94f5b5b1359128ce9ba355d51eb6986 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 2 Oct 2021 21:53:44 -0500 Subject: [PATCH] Correct errors in nginx configuration --- playbooks/prod_web.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index d7d9463..6527198 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -46,15 +46,15 @@ # desu.ltd - name: desu.ltd proxy_pass: http://desultd:80 - handles: - - handle: /.well-known/matrix/server + locations: + - location: /.well-known/matrix/server contents: | - header Content-Type application/json - respond `{"m.server":"matrix.desu.ltd:443"}` - - handle: /.well-known/matrix/client + default_type application/json; + return 200 '{"m.server":"matrix.desu.ltd:443"}'; + - location: /.well-known/matrix/client contents: | - header Content-Type application/json - resond `{"m.homeserver":{"base_url":"https://matrix.desu.ltd"}}` + default_type application/json; + return 200 '{"m.homeserver":{"base_url":"https://matrix.desu.ltd"}}'; - name: git.desu.ltd proxy_pass: http://gitea:3000 - name: nc.desu.ltd