Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8080;
- server_name example.server.com;
- root /home/pi/Workspace/client/web-root;
- index index.html index.htm;
- location / {
- allow 10.0.0.0/24;
- allow 192.168.0.0/24;
- allow 127.0.0.1;
- deny all;
- try_files $uri $uri/ =404;
- }
- location /rws/ws {
- proxy_pass http://localhost:8889;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement