Files
CRM_Montzar/deploy/nginx-crm.montact.ir.conf
T

31 lines
861 B
Plaintext

# Alias for the same CRM app — optional second site file.
# Prefer adding both names on crm.montzar.ir (see nginx-crm.montzar.ir.conf).
# If you enable this file separately, do NOT redefine upstream mento_crm_api.
server {
listen 80;
listen [::]:80;
server_name crm.montact.ir;
client_max_body_size 50M;
root /var/www/crm/apps/web/dist;
index index.html;
location /api/ {
proxy_pass http://mento_crm_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_connect_timeout 60s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
}
location / {
try_files $uri $uri/ /index.html;
}
}