mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-09 15:10:00 +03:00
* feat: change to ssr * fix: move route to nginx * fix: rename yaml * ci: add deploy * fix: real ip
43 lines
846 B
Nginx Configuration File
43 lines
846 B
Nginx Configuration File
upstream website_backend {
|
|
server website:8000;
|
|
}
|
|
|
|
upstream frontend {
|
|
server frontend:3000;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
set_real_ip_from 172.18.0.0/16;
|
|
real_ip_header X-Forwarded-For;
|
|
real_ip_recursive on;
|
|
|
|
proxy_http_version 1.1;
|
|
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 /api/v1/ {
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location /agency/ {
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location /whitelist/ {
|
|
proxy_pass http://website_backend;
|
|
}
|
|
|
|
location /feedback/ {
|
|
proxy_pass http://website_backend/api/v1/feedback/;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://frontend;
|
|
}
|
|
}
|