2023-02-21 06:01:43 +00:00
|
|
|
upstream plane {
|
|
|
|
server localhost:80;
|
|
|
|
}
|
|
|
|
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
root /www/data/;
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
location / {
|
|
|
|
proxy_pass http://localhost:3000/;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
}
|
|
|
|
location /api/ {
|
|
|
|
proxy_pass http://localhost:8000/api/;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
}
|
2023-08-21 12:42:41 +00:00
|
|
|
location /space/ {
|
|
|
|
proxy_pass http://localhost:4000/;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
}
|
2023-02-21 06:01:43 +00:00
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
|
|
|
}
|