-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/RestyaPlatform/board into v1…
….7.1
- Loading branch information
Showing
16 changed files
with
706 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,134 @@ | ||
--- | ||
engines: | ||
version: "2" | ||
checks: | ||
argument-count: | ||
enabled: true | ||
config: | ||
threshold: 10 | ||
complex-logic: | ||
enabled: false | ||
file-lines: | ||
config: | ||
threshold: 10000 | ||
similar-code: | ||
enabled: false | ||
identical-code: | ||
enabled: false | ||
method-complexity: | ||
enabled: true | ||
config: | ||
threshold: 10000 | ||
method-count: | ||
enabled: true | ||
config: | ||
threshold: 1000 | ||
method-lines: | ||
config: | ||
threshold: 10000 | ||
nested-control-flow: | ||
enabled: true | ||
config: | ||
threshold: 10000 | ||
return-statements: | ||
enabled: true | ||
config: | ||
threshold: 100 | ||
plugins: | ||
csslint: | ||
enabled: true | ||
checks: | ||
adjoining-classes: | ||
enabled: false | ||
box-model: | ||
enabled: false | ||
box-sizing: | ||
enabled: false | ||
compatible-vendor-prefixes: | ||
enabled: false | ||
display-property-grouping: | ||
enabled: false | ||
duplicate-background-images: | ||
enabled: false | ||
duplicate-properties: | ||
enabled: false | ||
empty-rules: | ||
enabled: false | ||
fallback-colors: | ||
enabled: false | ||
gradients: | ||
enabled: false | ||
known-properties: | ||
enabled: false | ||
important: | ||
enabled: false | ||
order-alphabetical: | ||
enabled: false | ||
outline-none: | ||
enabled: false | ||
overqualified-elements: | ||
enabled: false | ||
qualified-headings: | ||
enabled: false | ||
universal-selector: | ||
enabled: false | ||
unqualified-attributes: | ||
enabled: false | ||
regex-selectors: | ||
enabled: false | ||
star-property-hack: | ||
enabled: false | ||
text-indent: | ||
enabled: false | ||
underscore-property-hack: | ||
enabled: false | ||
zero-units: | ||
enabled: false | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
checks: | ||
TODO: | ||
enabled: false | ||
XXX: | ||
enabled: false | ||
phpmd: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.css" | ||
- "**.js" | ||
- "**.php" | ||
exclude_paths: | ||
- api_explorer/* | ||
- build/* | ||
- client/css/converse.css | ||
- client/js/libs/* | ||
- server/php/libs/vendors/**/* | ||
enabled: false | ||
checks: | ||
CleanCode/BooleanArgumentFlag: | ||
enabled: false | ||
CleanCode/ElseExpression: | ||
enabled: false | ||
CleanCode/IfStatementAssignment: | ||
enabled: false | ||
CleanCode/MissingImport: | ||
enabled: false | ||
CleanCode/StaticAccess: | ||
enabled: false | ||
Controversial/CamelCaseMethodName: | ||
enabled: false | ||
Controversial/CamelCaseParameterName: | ||
enabled: false | ||
Controversial/CamelCasePropertyName: | ||
enabled: false | ||
Controversial/CamelCaseVariableName: | ||
enabled: false | ||
Controversial/Superglobals: | ||
enabled: false | ||
CyclomaticComplexity: | ||
enabled: false | ||
Design/LongMethod: | ||
enabled: false | ||
Design/NpathComplexity: | ||
enabled: false | ||
Naming/LongVariable: | ||
enabled: false | ||
Naming/ShortVariable: | ||
enabled: false | ||
order-alphabetical: | ||
enabled: false | ||
exclude_patterns: | ||
- "api_explorer/*" | ||
- "build/*" | ||
- "client/css/converse.css" | ||
- "client/js/libs/*" | ||
- "server/php/libs/vendors/**/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
restya:$apr1$DQIHRX5N$5N4aWaY7ozpbjsf.NAnR3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,60 @@ | ||
--- | ||
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 | ||
|
||
* For configuring Restyaboard on a Nginx Reverse proxy, you have to set Host header: | ||
|
||
**Example** | ||
|
||
``` | ||
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 | ||
|
||
* 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.