From 59c85f0a11d7024018fdd60cdc2549305006d51e Mon Sep 17 00:00:00 2001 From: legonzaur Date: Sun, 1 Jun 2025 14:53:32 +0200 Subject: [PATCH] add nginx redirects --- default.conf | 12 ++++++++++++ nginx.container | 1 + 2 files changed, 13 insertions(+) create mode 100644 default.conf diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..2b51427 --- /dev/null +++ b/default.conf @@ -0,0 +1,12 @@ +server { + listen 80; + server_name localhost; + + location / { + proxy_pass http://localhost:3001 + } + + location /api { + proxy_pass http://localhost:3000 + } +} \ No newline at end of file diff --git a/nginx.container b/nginx.container index 15afa4e..50cbffb 100644 --- a/nginx.container +++ b/nginx.container @@ -1,3 +1,4 @@ [Container] Image=docker.io/nginx Pod=vote.pod +Volume=./default.conf:/etc/nginx/conf.d/default.conf \ No newline at end of file