proxy.conf (939B)
1 server { 2 listen 8443 ssl; 3 4 ssl_certificate /etc/nginx/certs/fullchain.pem; 5 ssl_certificate_key /etc/nginx/certs/privkey.pem; 6 7 location / { 8 proxy_pass http://myheats-frontend:80; 9 proxy_set_header Host $host; 10 proxy_set_header X-Real-IP $remote_addr; 11 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 12 proxy_set_header X-Forwarded-Proto $scheme; 13 } 14 location /api { 15 proxy_pass http://myheats-api:8000; 16 proxy_set_header Host $host; 17 proxy_set_header X-Real-IP $remote_addr; 18 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 19 proxy_set_header X-Forwarded-Proto $scheme; 20 21 # WebSocket proxying 22 # https://nginx.org/en/docs/http/websocket.html 23 proxy_http_version 1.1; 24 proxy_set_header Upgrade $http_upgrade; 25 proxy_set_header Connection "upgrade"; 26 } 27 }