Includes: API (Express/TypeScript), Astro site, Python workers, document generators, FCC compliance tools, Canada CRTC formation, Ansible infrastructure, and deployment scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
1.1 KiB
Django/Jinja
34 lines
1.1 KiB
Django/Jinja
# ERPNext CRM — crm.performancewest.net
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name {{ crm_domain }};
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ crm_domain }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ crm_domain }}/privkey.pem;
|
|
|
|
include /etc/nginx/conf.d/pw-security.conf;
|
|
|
|
client_max_body_size 50m;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:{{ erpnext_port }};
|
|
proxy_set_header Host {{ domain }}; # Frappe matches site by Host header — must match site dir name (performancewest.net)
|
|
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;
|
|
|
|
# WebSocket support (for ERPNext real-time)
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_read_timeout 300s;
|
|
proxy_send_timeout 300s;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name {{ crm_domain }};
|
|
return 301 https://$host$request_uri;
|
|
}
|