From f47f74fa0e9c7258bfe90623212b87251fbf7778 Mon Sep 17 00:00:00 2001 From: toir-bot Date: Wed, 22 Apr 2026 07:14:11 +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..9f0ecf8 --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,22 @@ +resolver 127.0.0.11 valid=10s; + +server { + listen 80; + server_name toir-light-v6.greact.ru; + + location /api/ { + set $backend http://toir-light-v6-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://toir-light-v6-frontend:80; + proxy_pass $frontend/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } +}