Advertisement
kopyl

Untitled

Apr 27th, 2022
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1.  
  2. worker_processes 1;
  3.  
  4.  
  5. events {
  6. worker_connections 1024;
  7. }
  8.  
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12.  
  13. sendfile on;
  14.  
  15. keepalive_timeout 65;
  16.  
  17. server {
  18. listen 8080;
  19. server_name localhost;
  20.  
  21. location / {
  22. proxy_pass http://192.168.0.101:80;
  23.  
  24. }
  25.  
  26. location /ws/ {
  27.  
  28. proxy_pass ws://192.168.0.101:80/ws;
  29.  
  30. proxy_set_header Upgrade $http_upgrade;
  31. proxy_set_header Connection $connection_upgrade;
  32. }
  33.  
  34. error_page 500 502 503 504 /50x.html; location = /50x.html {
  35. root html; }
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. }
  43.  
  44.  
  45. include servers/*;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement