36 lines
868 B
Plaintext
36 lines
868 B
Plaintext
# Preview instance — crm2.montzar.ir
|
|
# Place under /etc/nginx/sites-available/crm2.montzar.ir
|
|
# HTTP only (same as crm): front proxy terminates SSL.
|
|
#
|
|
# Do not replace crm.montzar.ir / adm / ktg / montime vhosts.
|
|
|
|
upstream mento_crm2_api {
|
|
server 127.0.0.1:3032;
|
|
keepalive 8;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name crm2.montzar.ir;
|
|
|
|
client_max_body_size 50M;
|
|
|
|
root /var/www/crm2/apps/web/dist;
|
|
index index.html;
|
|
|
|
location /api/ {
|
|
proxy_pass http://mento_crm2_api;
|
|
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;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|