NGINX Configuration
Create a config file like the following example and place it in /etc/nginx/conf.d/
.
# ztna.conf
upstream backend {
# First server node
server <hosta-address>:6443;
# Second server node
server <hostb-address>:6443;
}
server {
listen 443 ssl default_server;
server_name ztna.yourdomain.com;
ssl_certificate /etc/ssl/certs/ztna.yourdomain.com.crt;
ssl_certificate_key /etc/ssl/private/ztna.yourdomain.com.key;
# Proxy only the path to the replicated tenant
location /ztna/mytenant {
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_pass https://backend;
}
}