livrare website cu erp si crm
This commit is contained in:
parent
28773e3a72
commit
5c7bf7c295
257 changed files with 31929 additions and 0 deletions
35
erp_crm/nginx.conf
Normal file
35
erp_crm/nginx.conf
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
upstream frappe-bench {
|
||||
server 127.0.0.1:8000 fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
|
||||
client_max_body_size 50m;
|
||||
|
||||
# Static assets (CSS, JS, images)
|
||||
location /assets {
|
||||
alias /home/frappe/frappe-bench/sites/assets;
|
||||
add_header Cache-Control "max-age=3600";
|
||||
}
|
||||
|
||||
# Site-specific public files (uploaded files, etc.)
|
||||
location /files {
|
||||
alias /home/frappe/frappe-bench/sites/didi-erp/public/files;
|
||||
add_header Cache-Control "max-age=3600";
|
||||
}
|
||||
|
||||
# Everything else -> gunicorn
|
||||
location / {
|
||||
proxy_pass http://frappe-bench;
|
||||
proxy_set_header Host didi-erp;
|
||||
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_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue