Hola estoy configurando en un servidor virtual ( vmware) con debian 10 , en el cual tengo instalado odoo 16 funcionando correctamente a excepcion de la configuracion de IOT con windows 10.
Mi configuracion en nginx es la siguiente:
# Odoo Upstreams
upstream odooserver {
server 127.0.0.1:8069;
}
upstream odoochat {
server 127.0.0.1:8072;
keepalive 32;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
map $sent_http_content_type $content_type_csp {
default "";
~image/ "default-src 'none'";
}
# Proxy settings
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
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;
# Request for root domain
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_pass http://odooserver;
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;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
}
access_log /var/log/nginx/odoo.access.log;
error_log /var/log/nginx/odoo.error.log;
# Cache static files
location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://odooserver;
}
location /websocket {
proxy_redirect off;
proxy_pass http://odoochat;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection $connection_upgrade;
#proxy_set_header 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;
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
}
location @odoo {
# copy-paste the content of the / location block
proxy_redirect off;
proxy_set_header Host $host;
proxy_pass http://odooserver;
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;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
}
location ~ ^/[^/]+/static/.+$ {
# root and try_files both depend on your addons paths
root /usr/lib/python3/dist-packages/odoo/addons;
try_files $uri @odoo;
expires 24h;
add_header Content-Security-Policy $content_type_csp;
}
# location /longpolling {
# proxy_pass http://odoochat;
#}
# Gzip
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
location /web/filestore {
internal;
alias /home/odoo/data-dir/filestore;
}
La configuarcion de odoo.conf es la siguiente:
[options]
db_host = False
db_port = False
db_user = odoo
db_password = *******
addons_path = /usr/lib/python3/dist-packages/odoo/addons, /home/odoo/custom
default_productivity_apps = True
logfile = /var/log/odoo/odoo.log
proxy_mode = True
workers = 64
;longpolling_port = False
xmlrpc = True
xmlrpc_interface = 127.0.0.1
xmlrpc_port = 8069
xmlrpcs = True
xmlrpcs_interface = 127.0.0.1
xmlrpcs_port = 8072
¿Como puedo hacer que se conecte la instalacion de IOT windows con odoo comunity?
¿ En dondes esta mi error de configuracion?
En etc/hosts esta puesto que 127.0.0.1 bit***ns.org y no 127.0.0.1 localhost .
Tengo instalado los siguientes IOT
IoT BAse, Iot Output ,Iot Input, IOt Template .
He comporbado con netstat -tulpn lo siguiente:
Proto Recv-Q Send-q Local Adrress foreign address state PID/Program Name
TCP 0 0 127.0.0.1:8069 0.0.0.0:* Listen 19**/python3
TCP 0 0 127.0.0.1:8072 0.0.0.0:* Listen 19**/python3
Puedo conectarme por telnet a 127.0.0.1:8069 y a 127.0.0.1:8072
El error que tengo al intentar conectarme con el iot de windows al servidor es
odoo.sql_db: ConnectionPool(used=1/count=1/max=64): Closed 1 connections to 'user=odoo password=xxx dbname=base_datos application_name=odoo-8679 sslmode=prefer'
Mi pregunta ahora es ¿ Postgresql debe funcionar como accesible por afuera ? ( No localhost) y si es asi el caso , ¿como le agrego el usuario y contraseña del IOT de Windows?
Un saludo