From 0c8099a639d446363436b59c7c9cd373c0ae8875 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 7 Sep 2019 01:30:39 +0200 Subject: [PATCH] config: add a route to fic-dashboard --- configs/nginx-frontend-htpasswd.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configs/nginx-frontend-htpasswd.conf b/configs/nginx-frontend-htpasswd.conf index aa4312f3..74b5af77 100644 --- a/configs/nginx-frontend-htpasswd.conf +++ b/configs/nginx-frontend-htpasswd.conf @@ -117,6 +117,19 @@ server { add_header Cache-Control no-cache; } + location /dashboard/ { + #auth_basic "Secure Zone"; + #auth_basic_user_file ficpasswd; + + #if ($remote_user !~ "^nemunaire|bombal_s$") { + # return 403; + #} + + proxy_pass http://fic-dashboard:8082; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_redirect off; + } + location /api/ { #auth_basic "Secure Zone"; #auth_basic_user_file ficpasswd;