From 365f5dc910b0a4db04ddcc40db085536b47ac62d Mon Sep 17 00:00:00 2001 From: toir-bot Date: Mon, 13 Apr 2026 18:30:31 +0000 Subject: [PATCH] chore: initial project scaffold: nginx.conf --- nginx.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..2501720 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,18 @@ +server { + listen 80; + server_name test-gen-9.greact.ru; + + location /api/ { + proxy_pass http://backend:3000/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location / { + proxy_pass http://frontend:80/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } +}