DataLife Engine / How to proxy_pass to https backend in NGINX

How to proxy_pass to https backend in NGINX

How to proxy_pass to https backend in NGINX

Put the proxy params:
server {
    ...
    location / {
        proxy_pass	   https://your_backend;
        proxy_set_header   Host             $host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
    }
    ...
}

upstream params:
vi /etc/nginx/conf.d/upstreams.conf
upstream your_backend {
    server 192.168.55.53:443;
}
29-08-2022, 04:38
Вернуться назад