Make proxy for google recaptcha

I want to make google recaptcha accessible for users from china

google and gstatic are blocked, i want to setup proxy for my domain.
My server is located in singapore so i want requests to google go through my server.

There is solution for apache here. How to set up a reverse proxy for Recaptcha on Apache · GitHub
Need to adopt it for caddy.

You can imitate the filters with http.filter, but Caddy has no method to substitute the cookie domain or replicate ProxyPassReverse.

Once PR #2144 is merged (Regex rewriting of upstream/downstream headers in proxy), it should be configurable to do both, I expect. In the meantime, the simplest solution if you need Caddy’s features at the edge would be to reverse proxy to an Apache reverse proxy.

I think i would wait for pure caddy solution

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