forked from rancher-sandbox/rancher-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows the docker compose test to access the app via host.docker.internal. Signed-off-by: Nino Kodabande <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
worker_processes 1; | ||
|
||
error_log stderr info; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
sendfile on; | ||
proxy_read_timeout 5s; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
# Serve the default nginx welcome page | ||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
} | ||
|
||
# Proxy requests to /app to the backend service | ||
location /app { | ||
proxy_pass http://host.docker.internal:8000/; | ||
} | ||
} | ||
} |