From 892a5cec77dbaf8c4ef9daa0a2670e809f857cd9 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Sun, 20 Sep 2020 18:01:29 +0200 Subject: [PATCH] Update nginx.conf To secure the access --- conf/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ec4b8d3..b389343 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,6 +3,10 @@ location __PATH__/ { # Path to source alias __FINALPATH__/ ; + + #To secure the access + auth_basic “Administrator’s Area”; + auth_basic_user_file /home/$admin/.htpass_phpsysinfo; # Force usage of https if ($scheme = http) { @@ -30,4 +34,4 @@ location __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; -} \ No newline at end of file +}