2023-02-21 11:31:43 +05:30
|
|
|
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-12-14 16:18:02 +05:30
|
|
|
location /spaces/ {
|
2023-08-21 18:12:41 +05:30
|
|
|
proxy_pass http://localhost:4000/;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
}
|
2023-02-21 11:31:43 +05:30
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
}
|