diff --git a/.htpassword b/.htpassword new file mode 100644 index 000000000..358f7914a --- /dev/null +++ b/.htpassword @@ -0,0 +1 @@ +restya:$apr1$DQIHRX5N$5N4aWaY7ozpbjsf.NAnR3. \ No newline at end of file diff --git a/README.md b/README.md index de2702517..b44c14056 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ sudo ./restyaboard.sh * You can configure the Nginx rate limit for Restyaboard by following the instructions from the documentation link [https://restya.com/board/docs/restyaboard-nginx-reverse-proxy-configuration/#configuration-of-rate-limiting-on-nginx](https://restya.com/board/docs/restyaboard-nginx-reverse-proxy-configuration/#configuration-of-rate-limiting-on-nginx) +### Diagnose Configuration + +* You can enable the password authentication for the diagnose page by following the instructions from the documentation link [https://restya.com/board/docs/restyaboard-nginx-reverse-proxy-configuration/#configuration-of-diagnose-with-password-authentication](https://restya.com/board/docs/restyaboard-nginx-reverse-proxy-configuration/#configuration-of-diagnose-with-password-authentication) + ### Forum * [Restya Google Group](https://groups.google.com/d/forum/restya) diff --git a/client/js/application.js b/client/js/application.js index 7c033316d..5136fe622 100644 --- a/client/js/application.js +++ b/client/js/application.js @@ -34,7 +34,7 @@ var R_MLDAP_LOGIN_HANDLE = ''; var R_MLDAP_SERVERS = ''; var last_activity = ''; var previous_date = ''; -var SecuritySalt = 'e9a556134534545ab47c6c81c14f06c0b8sdfsdf'; +const SecuritySalt = 'e9a556134534545ab47c6c81c14f06c0b8sdfsdf'; var last_user_activity_id = 0, load_more_last_board_activity_id = 0, last_board_activity_id = 0, diff --git a/docs/restyaboard-nginx-reverse-proxy-configuration.md b/docs/restyaboard-nginx-reverse-proxy-configuration.md index 564e7e46b..8bc63816a 100644 --- a/docs/restyaboard-nginx-reverse-proxy-configuration.md +++ b/docs/restyaboard-nginx-reverse-proxy-configuration.md @@ -1,8 +1,8 @@ --- -description: Restyaboard Configuration, here you can check Configuration of Restyaboard on an NGINX Reverse proxy +description: Restyaboard Configuration, here you can check Configuration of Restyaboard on an NGINX --- -# Configuration of Restyaboard on an NGINX Reverse proxy +# Configuration of Restyaboard on an NGINX ## Configuration of Restyaboard on an NGINX Reverse proxy @@ -32,4 +32,29 @@ limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; location / { limit_req zone=mylimit; } -``` \ No newline at end of file +``` + +## Configuration of Diagnose with password authentication + +* You can enable the password authentication for the diagnose page by adding the below lines + +**Example** +``` + location /diagnose.php { + auth_basic "Restricted Area"; + auth_basic_user_file /usr/share/nginx/html/.htpasswd; + try_files $uri =404; + include fastcgi_params; + fastcgi_pass unix:/run/php/php7.4-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +``` + +* You can configure the password authentication for the diagnose page in the Apache server by following the instructions from the [link](https://stackoverflow.com/a/8275094) + +* You can check the status of the Restyaboard in the diagnose and you can access the diagnose page using the username `restya`, password `restya123` + +* You can also configure the different password in the Nginx server configuration for the diagnose page by following the instructions from the link [https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/](https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/) + +* You can also configure the different password in the Apache server configuration for the diagnose page by following the instructions from the link [https://www.web2generators.com/apache-tools/htpasswd-generator](https://www.web2generators.com/apache-tools/htpasswd-generator) \ No newline at end of file