Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map $http_upgrade $connection_upgrade {
- default upgrade;
- '' close;
- }
- upstream websocket {
- server 127.0.0.1:6000;
- }
- upstream api {
- server 127.0.0.1:5000;
- }
- server {
- listen 80;
- listen 8888;
- index /static/index.html;
- location /static {
- alias /home/skyradar/skyradar-sar/ui;
- }
- location ~^/(openapi\.json|docs|redoc|shutdown|client-config|login|state) {
- include uwsgi_params;
- proxy_pass http://api;
- }
- location /data {
- proxy_pass http://websocket;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $connection_upgrade;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement