Restrict IP address for a reverse_proxy

Hi,
following up on a similar question.
In my case I will like to restrict only for a path

example.com {
@allowed remote_ip 11.11.11.11 22.22.22.22 33.33.33.33
handle @allowed /api/ {
reverse_proxy myapp:8080
}

# Fallback for otherwise not matched handles
handle {
	abort
}

}

would the above work??

Please fill out the help topic template, as per the forum rules.

And please mind your post formatting, it’s very hard to read your config because you didn’t use code blocks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.