Proxy(2)
-
Nginx proxy에서 client IP를 backend에 전달하기
server { listen 443 ssl; listen [::]:443 ssl; server_name www.test.co.kr; client_max_body_size 0; location / { proxy_pass http://spring-boot-service; # Forward headers 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_set_header X-Forwarded-Proto $scheme..
2024.12.29 -
nginx tcp proxy 설정
stream { server { listen {port}; proxy_connect_timeout 60s; proxy_socket_keepalive on; proxy_pass {proxy 접속정보}; }}
2024.05.04