Closed Thatoo closed 2 years ago
For me it works great. Just setup public access when you install phpsysinfo in yunohost.
OK but it means that all information are publicly available also... In PSIAndroid, I saw that it's possible to log in with id/password. Would it be possible to set that on phpsysinfo_ynh ?
Ok apparently, access can be restricted using an .htaccess -> http://arobaseinformatique.eklablog.com/monitorer-son-systeme-avec-phpsysinfo-a105205574
Yunohost don't use Apache but Nginx for the webserver. I don't know if it's possible :-(
If I understand well this page : https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/ , in the install script, we need
sudo apt install httpd-tools
sudo htpasswd -c /home/$USERNAME/.htpass_phpsysinfo $USERNAME #$USERNAME being the user name of the admin of the app
it will ask for password and then we need to add
auth_basic “Administrator’s Area”;
auth_basic_user_file /home/$USERNAME/.htpass_phpsysinfo;
to the
location __PATH__/ {
of nginx
I'm offering this idea but I'm not 100% sure : https://github.com/YunoHost-Apps/phpsysinfo_ynh/pull/9
If i do this, private access with SSO is broken... Another problem is to put the password without console access :-(
I left a message on the official forum for help. -> https://forum.yunohost.org/t/phpsysinfo-securiser-lacces-via-http-basic-authentication/12721
Not possible to work with yunohost sso.
Hello,
Would it be possible to make this yunohost app compatible with PSIAndroid ? https://f-droid.org/fr/packages/com.phpsysinfo/ If it is possible to do so without making the yunohost app public, that would be really great.