19 lines
490 B
Nginx Configuration File
19 lines
490 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name test-gen-4.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;
|
|
}
|
|
}
|