Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5028 Zobrazení

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.

Avatar
Zrušit

did you try to increase time-out ?

Autor

@Usman How to set up

Autor Nejlepší odpověď

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;

}


```


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
úno 22
6203
1
srp 21
7780
1
čvc 25
2296
2
čvc 25
7759
2
čvc 25
4181