تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5101 أدوات العرض

When used by multiple users, port 8072 will sometimes block, resulting in the cancellation of long polling, and then the user's session expires.

Can anyone help? Thank you very much.

الصورة الرمزية
إهمال

did you try to increase time-out ?

الكاتب

@Usman How to set up

الكاتب أفضل إجابة

Here is my nginx configuration file, the outer 9070 port forwarding port 443

```

#odoo server

upstream odoo {

server 127.0.0.1:8070;

}

upstream odoo-im {

server 127.0.0.1:8072;

}



server {

listen 9070;

server_name XXXXXXXX.com;

client_max_body_size 30M;

proxy_read_timeout 720s;

proxy_connect_timeout 720s;

proxy_send_timeout 720s;



# 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

access_log /var/log/nginx/odoo_access.log;

error_log /var/log/nginx/odoo_error.log;





# Redirect requests to odoo backend server

location / {

proxy_redirect off;

proxy_pass http://odoo;

}

location /longpolling {

proxy_pass http://odoo-im;

}

# common gzip

gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;

gzip on;

}


```


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
فبراير 22
6297
1
أغسطس 21
7844
1
يوليو 25
2520
2
يوليو 25
7965
2
يوليو 25
4405