Hi.
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_pass https://musing-bohr-8370ae.netlify.app/;
proxy_redirect / /blog/;
proxy_cache off;
proxy_read_timeout 240s;
}
This works but after some time Netlify server redirects to https://musing-bohr-8370ae.netlify.app/ if I make a request through own server.
Can I proxy by this way for long term?