mirror of
https://github.com/fosrl/docs-v2.git
synced 2026-07-17 11:30:00 +00:00
73 lines
2.0 KiB
Plaintext
73 lines
2.0 KiB
Plaintext
---
|
|
title: "Remove GeoBlock Plugin"
|
|
---
|
|
|
|
import PangolinCloudTocCta from "/snippets/pangolin-cloud-toc-cta.mdx";
|
|
|
|
<PangolinCloudTocCta />
|
|
|
|
|
|
|
|
<Note>
|
|
This is a community guide and is not officially supported. If you have any issues, please reach out to the community on [Discord](https://pangolin.net/discord) or [Github discussions](https://github.com/orgs/fosrl/discussions).
|
|
</Note>
|
|
|
|
Pangolin now supports native geo-blocking. If you previously installed the Traefik GeoBlock plugin, remove it before enabling native geo-blocking to avoid duplicate blocking or startup errors.
|
|
|
|
<Note>
|
|
After cleanup, follow [Enable Geo-location](/self-host/advanced/enable-geolocation) to configure the geo-location database used by native geo-blocking in Pangolin.
|
|
</Note>
|
|
|
|
## Remove the GeoBlock plugin
|
|
|
|
<Steps>
|
|
<Step title="Remove GeoBlock middleware references">
|
|
Remove any references to `geoblock@file` from your Traefik entry points, routers, or labels.
|
|
|
|
Example removal in `/config/traefik/traefik_config.yml`:
|
|
|
|
```yaml
|
|
entryPoints:
|
|
websecure:
|
|
http:
|
|
middlewares:
|
|
# Remove this line
|
|
- geoblock@file
|
|
```
|
|
</Step>
|
|
<Step title="Remove the plugin definition from Traefik static config">
|
|
Delete the GeoBlock plugin block from `/config/traefik/traefik_config.yml`:
|
|
|
|
```yaml
|
|
experimental:
|
|
plugins:
|
|
geoblock:
|
|
moduleName: github.com/PascalMinder/geoblock
|
|
version: v0.3.2
|
|
```
|
|
</Step>
|
|
<Step title="Remove the middleware configuration from dynamic config">
|
|
Delete the GeoBlock middleware section from `/config/traefik/dynamic_config.yml`:
|
|
|
|
```yaml
|
|
http:
|
|
middlewares:
|
|
geoblock:
|
|
plugin:
|
|
geoblock:
|
|
...
|
|
```
|
|
</Step>
|
|
<Step title="Restart Traefik">
|
|
Restart Traefik to apply the changes:
|
|
|
|
```bash
|
|
docker restart traefik
|
|
```
|
|
</Step>
|
|
</Steps>
|
|
|
|
## Next steps
|
|
|
|
Follow [Enable Geo-location](/self-host/advanced/enable-geolocation) to configure the geo-location database used by native geo-blocking in Pangolin.
|