From 57165293dbfb559b2f98a32c0da5848f86fa1b38 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 22 Jun 2021 14:33:52 +0200 Subject: [PATCH] =?UTF-8?q?[Gal=C3=A8ne]=20Update=20Nginx=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yohann D'ANELLO --- group_vars/galene.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/group_vars/galene.yml b/group_vars/galene.yml index fa988fbc..fffd2a0a 100644 --- a/group_vars/galene.yml +++ b/group_vars/galene.yml @@ -12,17 +12,19 @@ service_nginx: - "include /etc/nginx/snippets/options-proxypass.conf" - "proxy_pass http://localhost:8443" + - filter: "~ ^/(\\w+)/$" + params: + - "return 302 https://$host/group/$1" + - ssl: crans.org server_name: - "neree.crans.org" - root: "/var/www/galene-stream-frontend/static" locations: - - filter: "~ ^/(ws|public-groups.json)" + - filter: "/" params: - "include /etc/nginx/snippets/options-proxypass.conf" - "proxy_pass http://localhost:8443" - - filter: "~ ^\\/(?!.*\\.\\.)[^/]+$" + - filter: "~ ^/(\\w+)/$" params: - - " add_header Content-Security-Policy \"connect-src ws: wss: 'self'; img-src data: 'self'; media-src blob: 'self'; default-src 'self';\"" - - "try_files $uri /galene.html =404" + - "return 302 https://$host/group/$1"