1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpsysinfo_ynh.git synced 2024-09-03 19:56:43 +02:00

Update nginx.conf

To secure the access
This commit is contained in:
Thatoo 2020-09-20 18:01:29 +02:00 committed by GitHub
parent 1db39f122a
commit 892a5cec77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,10 @@ location __PATH__/ {
# Path to source
alias __FINALPATH__/ ;
#To secure the access
auth_basic “Administrators 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;
}
}