Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. server {
  2. listen 8080;
  3. server_name example.server.com;
  4. root /home/pi/Workspace/client/web-root;
  5. index index.html index.htm;
  6.  
  7. location / {
  8. allow 10.0.0.0/24;
  9. allow 192.168.0.0/24;
  10. allow 127.0.0.1;
  11. deny all;
  12. try_files $uri $uri/ =404;
  13. }
  14.  
  15. location /rws/ws {
  16. proxy_pass http://localhost:8889;
  17. proxy_http_version 1.1;
  18. proxy_set_header Upgrade $http_upgrade;
  19. proxy_set_header Connection "upgrade";
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement