Skip to content

Commit

Permalink
Apply pre-commit-config to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Jan 5, 2024
1 parent f6d7d17 commit 17c3eae
Show file tree
Hide file tree
Showing 13 changed files with 4,163 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/json2md.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3

from io import StringIO
from json import loads
Expand Down
3 changes: 1 addition & 2 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Manage default error pages
| Setting | Default | Context |Multiple| Description |
|-------------------------|-------------------------------------------------|---------|--------|------------------------------------------------------------------------------------------------------------------------|
|`ERRORS` | |multisite|no |List of HTTP error code and corresponding error pages, separated with spaces (404=/my404.html 403=/errors/403.html ...).|
|`INTERCEPTED_ERROR_CODES`|`400 401 403 404 405 413 429 500 501 502 503 504`|multisite|no |List of HTTP error code intercepted by Bunkerweb |
|`INTERCEPTED_ERROR_CODES`|`400 401 403 404 405 413 429 500 501 502 503 504`|multisite|no |List of HTTP error code intercepted by BunkerWeb |

### Greylist

Expand Down Expand Up @@ -550,4 +550,3 @@ Allow access based on internal and external IP/network/rDNS/ASN whitelists.
|`WHITELIST_USER_AGENT_URLS`| |global |no |List of URLs, separated with spaces, containing good User-Agent to whitelist. |
|`WHITELIST_URI` | |multisite|no |List of URI (PCRE regex), separated with spaces, to whitelist. |
|`WHITELIST_URI_URLS` | |global |no |List of URLs, separated with spaces, containing bad URI to whitelist. |

2 changes: 1 addition & 1 deletion docs/web-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The setup wizard is a feature that helps you to **configure** and **install the
<figcaption>Account section of the setup wizard</figcaption>
</figure>

Choose your administator username and password. Please note that password must have at least 8 chars with 1 lower case letter, 1 upper case letter, 1 digit and 1 special char.
Choose your administrator username and password. Please note that password must have at least 8 chars with 1 lower case letter, 1 upper case letter, 1 digit and 1 special char.

<figure markdown>
![Overview](assets/img/ui-wizard-settings.webp){ align=center, width="350" }
Expand Down
1 change: 1 addition & 0 deletions examples/behind-reverse-proxy/setup-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ -f /lib/systemd/system/haproxy.service ] ; then
systemctl daemon-reload
fi
systemctl start haproxy
# shellcheck disable=SC2181
if [ $? -ne 0 ] ; then
systemctl status haproxy
journalctl -u haproxy.service
Expand Down
2 changes: 1 addition & 1 deletion src/common/confs/api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ server {
-- Instantiate objects and import required modules
local logger = require "bunkerweb.logger":new("API")
local helpers = require "bunkerweb.helpers"

local ngx = ngx
local INFO = ngx.INFO
local ERR = ngx.ERR
Expand Down
2 changes: 1 addition & 1 deletion src/common/core/errors/files/error.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion src/common/core/misc/files/default.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
4,142 changes: 4,141 additions & 1 deletion src/ui/static/css/dashboard.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ui/static/css/datepicker-foundation.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 17c3eae

Please sign in to comment.