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