Настройка реверс-прокси NGINX
Шаблон для {nginx}/sites-available
server {
# Replace domain name, for example "example.com"
server_name {domain_name};
location / {
proxy_pass http://{server_address}; # Replace server address, for example "127.0.0.1"
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}