Skip to content

Commit

Permalink
Fixes #4383: Diagnose file changes added
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan477 committed Feb 28, 2022
1 parent 05137ee commit 89829a8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .htpassword
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
restya:$apr1$DQIHRX5N$5N4aWaY7ozpbjsf.NAnR3.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ sudo ./restyaboard.sh
* To add/reply cards via email, visit `/#/settings/10` to configure IMAP settings

### Diagnose Configuration
* You can check the status of the Restyaboard in the diagnose and you can access the diagnose page using username `restya`, password `restya123`
* You can also configure the different password for the diagnose page by following the instructions from the link https://www.php.net/manual/en/features.http-auth.php
* You can enable the password authentication for the diagnose page by uncommenting the lines 45-53 on the Nginx configuration file [restyaboard.conf](https://github.com/RestyaPlatform/board/blob/dev/restyaboard.conf#L45)
* 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/
* 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/

### Forum

Expand Down
10 changes: 10 additions & 0 deletions docker-scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ server {
fastcgi_param PHP_VALUE "upload_max_filesize=9G \n post_max_size=9G \n max_execution_time=200 \n max_input_time=200 \n memory_limit=256M";
}

# location /diagnose.php {
# auth_basic "Restricted Area";
# auth_basic_user_file /var/lib/nginx/html/.htpasswd;
# try_files $uri =404;
# include fastcgi_params;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# }

location ~* \.(css|js|less|html|ttf|woff|jpg|jpeg|gif|png|bmp|ico|pdf|doc|docx|xls|xlx|txt|ppt|pptx|mp4|webm|mkv|wmv|avi|mp3) {
root /var/lib/nginx/html/client;
if (-f $request_filename) {
Expand Down
10 changes: 10 additions & 0 deletions restyaboard.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ server {
fastcgi_param PHP_VALUE "upload_max_filesize=9G \n post_max_size=9G \n max_execution_time=200 \n max_input_time=200 \n memory_limit=256M";
}

# 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;
# }

location ~* \.(css|js|less|html|ttf|woff|jpg|jpeg|gif|png|bmp|ico|pdf|doc|docx|xls|xlx|txt|ppt|pptx|mp4|webm|mkv|wmv|avi|mp3) {
root /usr/share/nginx/html/client;
if (-f $request_filename) {
Expand Down

0 comments on commit 89829a8

Please sign in to comment.