# podman 용 upstream — http 컨텍스트 공통 설정. # # docker.conf 는 Docker 내장 DNS(127.0.0.11)를 resolver 로 지정해 web 컨테이너가 다시 떠도 # nginx 재시작 없이 새 IP 를 따라간다. podman 의 DNS(aardvark-dns)는 주소가 네트워크마다 달라 # 고정할 수 없으므로, 여기서는 resolver 를 쓰지 않고 컨테이너의 /etc/resolv.conf 로 기동 시 # 한 번만 해석한다. # # → web 컨테이너를 다시 만들면 nginx 도 다시 로드해야 한다: # podman exec pi-continuum-nginx nginx -s reload upstream pi_continuum_web { zone pi_continuum_web 64k; server web:8000; } # WebSocket 업그레이드 요청에만 Connection: upgrade 를 넘긴다. map $http_upgrade $connection_upgrade { default upgrade; '' close; }