-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdefault.conf
35 lines (31 loc) · 1.14 KB
/
default.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
upstream odoo{
server odoo:8069;
}
server {
listen 80 default;
server_name erp.yourdomain.com 52.67.84.113;
keepalive_timeout 600;
client_header_timeout 600;
client_max_body_size 200M;
client_body_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
root /usr/share/nginx/html;
index index.html index.htm;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
location / {
proxy_pass http://odoo;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
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 https;
# invento mio
proxy_set_header X-ODOO_DBFILTER db;
proxy_pass_request_headers on;
}
}