Nginx Reverse Proxy cho Internal Services
Tại sao không dùng Ingress?
Trong môi trường không có K8s, hoặc cần control nhiều hơn.
Config ví dụ
server {
listen 80;
server_name uat-payment.tingee.vn;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
Dùng Certbot để có HTTPS tự động.