Initial commit.

This commit is contained in:
2021-05-24 22:18:33 +03:00
commit e2954d55f4
3701 changed files with 330017 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
# odoo server
upstream odoo-crm {
server 127.0.0.1:8069;
}
upstream odoo-crm-chat {
server 127.0.0.1:8071;
}
server {
listen 80;
server_name crm.thermographycloud.com;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
# add headers for odoo proxy mode
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
# log files
access_log /var/log/nginx/crm.thermographycloud.com.access.log;
error_log /var/log/nginx/crm.thermographycloud.com.error.log;
# redirect requests to odoo backend server
location / {
proxy_redirect off;
proxy_pass http://odoo-crm;
}
location /longpolling {
proxy_pass http://odoo-crm-chat;
}
# common gzip
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}