Skip to content

Commit

Permalink
Merge pull request #4389 from RestyaPlatform/issue/4388
Browse files Browse the repository at this point in the history
Fixes #4388: Nginx configuration changes added
  • Loading branch information
rrjanbiah authored Mar 10, 2022
2 parents 809a2d6 + 05c739f commit 306face
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ sudo ./restyaboard.sh
* Change admin email and password
* To add/reply cards via email, visit `/#/settings/10` to configure IMAP settings

### NGINX Rate Limiting Configuration

* 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)
Expand Down
29 changes: 25 additions & 4 deletions docs/restyaboard-nginx-reverse-proxy-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,28 @@ description: Restyaboard Configuration, here you can check Configuration of Rest

**Example**
```
location / {
proxy_set_header Host $host; # important
proxy_pass http://localhost:8000;
}
location / {
proxy_set_header Host $host; # important
proxy_pass http://localhost:8000;
}
```

## Configuration of rate limiting on Nginx

* You can limit the request on the Nginx configuration by adding limit request on the configuration file

**Example**
```
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
```

* Also, you need to add the limit request on the `location` block

**Example**
```
location / {
limit_req zone=mylimit;
}
```

## Configuration of Diagnose with password authentication
Expand All @@ -34,6 +52,9 @@ description: Restyaboard Configuration, here you can check Configuration of Rest
```

* 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)

0 comments on commit 306face

Please sign in to comment.