We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94766bb commit b6c9268Copy full SHA for b6c9268
docs/auth_plugins.md
@@ -448,3 +448,20 @@ module Hooks
448
end
449
450
```
451
+
452
+The configuration for this IP filtering plugin would look like this:
453
454
+```yaml
455
+path: /example
456
+handler: CoolNewHandler # could be any handler you want to use
457
458
+auth:
459
+ type: ip_filtering_plugin # using the custom IP filtering plugin (remember IpFilteringPlugin becomes ip_filtering_plugin)
460
461
+# You can specify additional options in the `opts` section but the `allowed_ips` option is required for this plugin demo to work
462
+opts:
463
+ allowed_ips: # list of allowed IPs
464
+ - "<ALLOWED_IP_1>"
465
+ - "<ALLOWED_IP_2>"
466
+ - "<ALLOWED_IP_3>"
467
+```
0 commit comments