mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-05-02 08:54:28 +09:00
Compare commits
3 Commits
1.25.0-ls1
...
1.25.0-ls1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9e05fd86a | ||
|
|
2272c3037a | ||
|
|
de3b43cb62 |
@@ -103,11 +103,12 @@ This will *ask* Google et al not to index and list your site. Be careful with th
|
|||||||
|
|
||||||
### Using fail2ban
|
### Using fail2ban
|
||||||
|
|
||||||
* This container includes fail2ban set up with 4 jails by default:
|
* This container includes fail2ban set up with 5 jails by default:
|
||||||
1. nginx-http-auth
|
1. nginx-http-auth
|
||||||
2. nginx-badbots
|
2. nginx-badbots
|
||||||
3. nginx-botsearch
|
3. nginx-botsearch
|
||||||
4. nginx-deny
|
4. nginx-deny
|
||||||
|
5. nginx-unauthorized
|
||||||
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
||||||
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
||||||
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
||||||
|
|||||||
@@ -120,11 +120,12 @@ app_setup_block: |
|
|||||||
|
|
||||||
### Using fail2ban
|
### Using fail2ban
|
||||||
|
|
||||||
* This container includes fail2ban set up with 4 jails by default:
|
* This container includes fail2ban set up with 5 jails by default:
|
||||||
1. nginx-http-auth
|
1. nginx-http-auth
|
||||||
2. nginx-badbots
|
2. nginx-badbots
|
||||||
3. nginx-botsearch
|
3. nginx-botsearch
|
||||||
4. nginx-deny
|
4. nginx-deny
|
||||||
|
5. nginx-unauthorized
|
||||||
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
||||||
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
||||||
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
||||||
|
|||||||
Reference in New Issue
Block a user