Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

hello

I want to ask about “bus.bus” for sendone.

I have a case like this, I run a bus.bus on my local computer well. then I uploaded the code to the cloud server and the results did not run. does it need settings from the server side such as nginx, odoo.conf and others?


for my nginx settings like this:

upstream odoo {

server 127.0.0.1:8069;

}

upstream odoochat {

server 127.0.0.1:8072;

}

map $http_upgrade $connection_upgrade {

  default upgrade;

  ''      close;

}

server {

listen 80;

server_name {domain};


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;


location /websocket {

    proxy_pass <http://odoochat>;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection $connection_upgrade;

    proxy_set_header X-Forwarded-Host $http_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;


}

 

# Redirect requests to odoo backend server

location / {

# Add Headers for odoo proxy mode

proxy_set_header X-Forwarded-Host $http_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;

proxy_redirect off;

proxy_pass <http://odoo>;

}



# common gzip

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

gzip on;


client_body_in_file_only clean;

client_body_buffer_size 32K;

client_max_body_size 500M;

sendfile on;

send_timeout 600s;

keepalive_timeout 300;

}


for odoo .conf

xmlrpc_port = 8069

longpolling_port = 8072

log_db_level = warning

log_handler = [:INFO]

log_level = info

logfile = /var/log/odoo/odoo17e.log

proxy_mode = True


thanks you


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 25
1482
0
wrz 23
2300
1
sie 17
7223
2
paź 22
3955
0
cze 22
1521