mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 01:46:10 -04:00
Update README.md
This commit is contained in:
@@ -9,12 +9,13 @@ Follow these steps to enable the dbip mod:
|
|||||||
1. In the container's docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:swag-dbip`
|
1. In the container's docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:swag-dbip`
|
||||||
|
|
||||||
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:swag-dbip|linuxserver/mods:swag-mod2`
|
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:swag-dbip|linuxserver/mods:swag-mod2`
|
||||||
2. Add the following line to `/config/nginx/nginx.conf` under the `http` section:
|
2. Recreate the container to apply the changes.
|
||||||
|
3. Add the following line to `/config/nginx/nginx.conf` under the `http` section:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
include /config/nginx/dbip.conf;
|
include /config/nginx/dbip.conf;
|
||||||
```
|
```
|
||||||
3. Edit `/config/nginx/dbip.conf` and add countries to the blocklist / whitelist according to the comments, for example:
|
4. Edit `/config/nginx/dbip.conf` and add countries to the blocklist / whitelist according to the comments, for example:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
map $geoip2_data_country_iso_code $geo-whitelist {
|
map $geoip2_data_country_iso_code $geo-whitelist {
|
||||||
@@ -27,7 +28,7 @@ Follow these steps to enable the dbip mod:
|
|||||||
US no;
|
US no;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
4. Use the definitions in the following way:
|
5. Use the definitions in the following way:
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
@@ -42,4 +43,4 @@ Follow these steps to enable the dbip mod:
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
```
|
```
|
||||||
5. Recreate the container to apply the changes.
|
6. Restart the container to apply the changes.
|
||||||
|
|||||||
Reference in New Issue
Block a user