vCenter Server 앞단에 Nginx Proxy를 놓을 때, Proxy Setting Value
Computer & Telecom2024. 6. 14. 11:15
vCenter Server를 Public에 오픈하면서 SSL 인증서를 걸어야 했는데,
Let's encrypt 적용을 위해 Nginx Proxy를 걸었는데, 접속이 안된다.
다음의 설정을 적용해야 동작한다.
server {
listen 443 ssl http2;
server_name my_internet_vcenter_fqdn;
ssl_certificate /etc/letsencrypt/live/my_letsencrypt_domain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my_letsencrypt_domain/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
location / {
proxy_set_header Host "your_vCenter_fqdn";
proxy_set_header Origin "your_vCenter_fqdn";
proxy_set_header X-Real-IP $remote_addr;
proxy_ssl_verify off;
proxy_pass https://your_vCenter_fqdn;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_redirect https://your_vCenter_fqdn/ https://my_internet_vcenter_fqdn/;
}
location /websso/SAML2 {
sub_filter "your_vCenter_fqdn" "my_internet_vcenter_fqdn";
proxy_set_header Host your_vCenter_fqdn;
proxy_set_header X-Real-IP $remote_addr;
proxy_ssl_verify off;
proxy_pass https://your_vCenter_fqdn;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_ssl_session_reuse on;
proxy_redirect https://your_vCenter_fqdn/ https://my_internet_vcenter_fqdn/;
}
}