From 3277fe0148e17df53cd65c9fce8735184aed3ae9 Mon Sep 17 00:00:00 2001 From: toir-bot Date: Tue, 14 Apr 2026 07:01:05 +0000 Subject: [PATCH] chore: initial project scaffold: nginx/nginx.conf --- nginx/nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nginx/nginx.conf diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..ace4cec --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,22 @@ +resolver 127.0.0.11 valid=10s; + +server { + listen 80; + server_name light-toir-v2.greact.ru; + + location /api/ { + set $backend http://light-toir-v2-backend:3000; + proxy_pass $backend/; + 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 / { + set $frontend http://light-toir-v2-frontend:80; + proxy_pass $frontend/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } +}