part 12 done
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user