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:
parent
1db39f122a
commit
892a5cec77
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,10 @@ location __PATH__/ {
|
||||||
|
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/ ;
|
alias __FINALPATH__/ ;
|
||||||
|
|
||||||
|
#To secure the access
|
||||||
|
auth_basic “Administrator’s Area”;
|
||||||
|
auth_basic_user_file /home/$admin/.htpass_phpsysinfo;
|
||||||
|
|
||||||
# Force usage of https
|
# Force usage of https
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
|
@ -30,4 +34,4 @@ location __PATH__/ {
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue