mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-19 07:35:09 +00:00
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:
parent
9e56dc06fb
commit
7d11e14804
19 changed files with 663 additions and 294 deletions
42
nginx.conf
Normal file
42
nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue