GitHub user LinkinStars added a comment to the discussion: How do I restrict 
admin access IPs?

@hdnauth 
https://github.com/apache/incubator-answer/blob/c2ad8c641cf40f28d86e28729d7a60881053b6c7/internal/base/server/http.go#L90

The admin router was registered here. So you can add a middleware here to 
restrict the IP.

GitHub link: 
https://github.com/apache/incubator-answer/discussions/1180#discussioncomment-11331111

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to