nginx
-
Rancher - react build html nginx로 띄워보기ETC/MacOS,Rancher 2024. 3. 15. 14:44
react로 개발되고 빌드된 html를 로컬에서 nginx로 띄워볼 일이 생겼다, 간단하지만 정리는 해두자. custom.conf 생성$ vi /Users/deokjoonkang/dev/opt/nginx/config/custom.confserver { listen 80; server_name example.com; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; }} 컨테이너 실행$ nerdctl run -d -p 8090:80 \ -v /Users/deokjoonkang/dev/opt/nginx/config/custom.conf:/etc/n..
-
nginx/socket.io 설정Server/nginX,Apache 2022. 9. 2. 10:11
설정 파일 ... #socket.io.js파일 전용. location /socket.io/ { proxy_pass wss://localhost:10002/socket.io/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; proxy_buffers 8 32k; proxy_buffer_size 64k; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_hos..