Netlify behind nginx

As known Netlify ips are blocked by RKN (Russian censor). But I have a server with dedicated ip and it’s not blocked. I can setup nginx for proxying requests to Netlify.
Example of config:

    location ^~ /blog/ {
            error_page 404 /404.html;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
            proxy_set_header X-NginX-Proxy true;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_max_temp_file_size 0;
            proxy_redirect / /blog/;
            proxy_cache off;
            proxy_read_timeout 240s;

This works but after some time Netlify server redirects to if I make a request through own server.
Can I proxy by this way for long term?

Hey @DalerAkhmetov,

thanks for posting your workaround. We are very aware that the situation with Netlify in Russia and Ukraine is less than ideal and we are still working on solutions to fix it. Hopefully, we’ll have an update for you soon.

When we do have a permanent solution in place that fixes things for everybody with no workarounds, I’ll update here as soon as I can. I can’t say whether or not your solution will work long term, but hopefully you won’t need it for too much longer. :pray:

Hi there, we have implemented a solution for our customers from Russia and Ukraine. More information here: