Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nginx.dev.conf
- # events is required, but defaults are ok
- events { }
- # A http server, listening at port 80
- http {
- server {
- listen 80;
- # Requests starting with root (/) are handled
- location / {
- # The following 3 lines are required for the hot loading to work (websocket).
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- # Requests are directed to http://localhost:5173
- proxy_pass http://app:5173;
- }
- location /api/ {
- proxy_pass http://server:3001;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement