Proxy

default proxy:

    location /airflow {

        proxy_pass http://8.8.8.8:8081;

        proxy_redirect        off;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header Host $host;

        proxy_pass_header Set-Cookie;

    }

 

proxy with redirect:

    location /ranger/ {

        proxy_pass http://8.8.8.8:6080/;

        proxy_redirect default;

    }

 

 

 

 

links:

http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_redirect

SSL - https://nginx.org/ru/docs/http/configuring_https_servers.html

https://ruhighload.com/%d0%9e%d0%bf%d1%82%d0%b8%d0%bc%d0%b0%d0%bb%d1%8c%d0%bd%d0%b0%d1%8f+%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0+nginx

https://ruhighload.com/%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+tls+%D0%B2+nginx

https://nginx.ru/ru/docs/http/ngx_http_ssl_module.html#ssl_session_tickets

https://habr.com/post/195808/

https://habr.com/post/272381/