Advertisement
lnxbusdrvr

nginx.dev.conf

Apr 26th, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | Source Code | 0 0
  1. # nginx.dev.conf
  2. # events is required, but defaults are ok
  3. events { }
  4.  
  5. # A http server, listening at port 80
  6. http {
  7. server {
  8. listen 80;
  9.  
  10. # Requests starting with root (/) are handled
  11. location / {
  12. # The following 3 lines are required for the hot loading to work (websocket).
  13. proxy_http_version 1.1;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection 'upgrade';
  16.  
  17. # Requests are directed to http://localhost:5173
  18. proxy_pass http://app:5173;
  19. }
  20.  
  21. location /api/ {
  22. proxy_pass http://server:3001;
  23. }
  24. }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement