feat: change to ssr (#69)

* feat: change to ssr

* fix: move route to nginx

* fix: rename yaml

* ci: add deploy

* fix: real ip
This commit is contained in:
LowderPlay 2026-05-29 14:51:32 +05:00 • committed by GitHub
parent 9e56dc06fb
commit 7d11e14804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 663 additions and 294 deletions

42
nginx.conf Normal file
View file

@ -0,0 +1,42 @@
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;
}
}