Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How to configure nginx proxy manager for odoo 16?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
apinginxproxydocker
9 Respostes
17754 Vistes
Avatar
Riccardo Branoner

Hi there,


I am setting up an odoo server in a docker environment where nginx proxy manager is installed. I was able to configure the host and add SSL encryption. The reverse proxy works fin and I reach odoo via subdomain easily.


But:

There are two issues which I think are maybe related and I hope to get an idea what is missing in the nginx proxy manager config:


In the odoo logs I see constantly the error 400 bad request, whil using the odoo application as usual. and second issue is that I try to use an api module which connects to a woocommerce webshop to sync data. I can't manage to get a connection to or from the webshop.

Is there anything else I need to set up for API connections and make them work?

thanks in advance!

0
Avatar
Descartar
Riccardo Branoner
Autor

Hi Hiyas,
like I already told the guys from Cybrosys, the question is more about how to configure it in combination with nginx PROXY MANAGER! This makes a lot of things easier (f.e.x you don't need to care about SSL certificates, it is just done fully automated within 2 mouseclicks).
My question here was more about how to configure a configuration which reflects the well-knows settings in the manually written config files of nginx.

If you manage a docker system with multiple applications, nginx PROXY MANAGER ist musch easier to handle instead of writing a lot of config files.

So has anyone tried to set up odoo in combination with nginx PROXY MANAGER?

My posted setup here seems to work fine after I added some snipplets manually in the advanced tab. But I fear I have some unnecessary options in there. However, for now it works. I was just wondering, if any other guy here implemented odoo in combination with the nice and easy to use nginx PROXY MANAGER

Humanoide servicios para la pyme, S.L.N.E.

Thank you very much FL1 s.r.o for your solution.
It helped me to solve some problems with the web page.
Next ponit to solve is that internal chat is not working, you have to refres the page to see the answers. It means that websocket/longpolling(deprecated) is not working.

¿Anyone with same problem?

Avatar
FL1 s.r.o.
Best Answer

hi,

i created a conf for nginx proxy manager for odoo 15.0 and 16.0

the conf file and the working configuration )ready for production is here:

Custom locations: "/" setup:

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;
proxy_redirect off;

Custom locations: "/websocket"

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;

Advanced: "Custom nginx configuration"

# 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;


inside the odoo-server.conf change setup xml interface, and proxy mode:

; This is the password that allows database operations:
admin_passwd = dddfdfdfsfger
http_port = 8069
longpolling_port = False
gevent_port = 8072
xmlrpcs_interfaces = 0.0.0.0
workers = 2
max_cron_threads = 1
proxy_mode = True
logfile = /var/log/odoo/odoo-server.log
addons_path=/odoo/odoo-server/addons,
        /odoo/custom/addons,

the full guide is here:

https://github.com/crottolo/odoo_auto_install/tree/main

https://fl1.cz/install-odoo-nginx-proxy-manager




1
Avatar
Descartar
Riccardo Branoner
Autor

Hi Fl1,
I guess that was the answer that I was looking for. I will test it these days and mark your answer as solced in case it works fine. Thanks for sharing!

:-)

Avatar
falco scheffert
Best Answer

Odoo is running fine on my system, and I have also applied the above configuration in Nginx. However, I am still facing issues when trying to access Odoo via Nginx from the outside, or when trying to access the web editor within Odoo. I am getting the following error:


UncaughtPromiseError > OwlError

Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property)

Occured on on 2024-12-04 20:16:52 GMT


OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)


    Error: An error occured in the owl lifecycle (see this Error's "cause" property)


        at handleError (...web.assets_web.min.js:952:101)


        at App.handleError (...web.assets_web.min.js:1594:29)


        at RootFiber.complete (...web.assets_web.min.js:983:37)


        at Scheduler.processFiber (...web.assets_web.min.js:1561:43)


        at Scheduler.processTasks (...web.assets_web.min.js:1555:62)


        at ...web.assets_web.min.js:1552:67




Caused by: TypeError: Cannot read properties of null (reading 'body')


    at ...web.assets_web.min.js:18686:47


    at MenuDialog.<anonymous> (...web.assets_web.min.js:1609:145)


    at RootFiber.complete (...web.assets_web.min.js:981:196)


    at Scheduler.processFiber (...web.assets_web.min.js:1561:43)


    at Scheduler.processTasks (...web.assets_web.min.js:1555:62)


    at ...web.assets_web.min.js:1552:67

0
Avatar
Descartar
Riccardo Branoner
Autor

Hi Falco,
I'm not sure, but I don't think this is an issue of nginx config. Looks more like a browser cache issue. Did you tried to empty your browser cache?
BTW, which odoo version are you using?

Best regards,
Riccardo

Avatar
Sistemas TNC
Best Answer

In my experience, in addition to implementing the recommendations of FL1 s.r.o., I have activated the proxy mode and it has worked correctly through the Nginx Proxy Manager - Odoo17 CE.

0
Avatar
Descartar
Avatar
Nur Mubin
Best Answer

Hi, Fl1
I have already follow the setup above, but still get error on accessing web editor with the error details below:

"Mixed Content: The page at 'http://mydomain.com/'. This request has been blocked; the content must be served over HTTPS."

I thought it was because I'm using migrated database from odoo15 to odoo16, however when i create new database the error is still the same and i can't access web editor. Any idea how to solve that?

0
Avatar
Descartar
FL1 s.r.o.

Check in technical function -> system parameter -> web.base.url with {{your_domain.com}}.
example https://fl1.cz

after restart odoo and check the issue

Martin Salcedo Pacheco

I have have the same error, Mixed Content, the web.base.url is setup as "https://"
Did you resolve it ?

Avatar
Adil Akbar
Best Answer

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

0
Avatar
Descartar
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

To configure Nginx with Odoo:  Configure Odoo With Nginx As a Reverse Proxy
Thanks

0
Avatar
Descartar
Avatar
Riccardo Branoner
Autor Best Answer

Hi guys from Cybrosys,
I already know your great article. It is fine if you deply a standalone nginx webserver and do the configuration there. But in my case I am running some other services in docker as well, so I like to manage all this via nginx proxy manager UI. And here it is a little bit tricky to set it up correctly.

But finally I think my issue is maybe solved. I added some strings in advanced section of the host settings:

But maybe I have some dublettes here?

location /websocket {

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "Upgrade";

proxy_pass http://odoo16-live:8072;

proxy_redirect off;

}


gzip_types text/css text/less text/plain text/xml application/xml application/json application/ja$

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;


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;

And btw, I have enabled all 3 options in general tab (incl websocket und block common exploits). The 400 bad request issue is gone and odoo reports to work fine on port 8069 and 8072.

Additionally I have enabled proxy_mode = true in odoo.conf.


Hope that helps

0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

Please go through our blog How to Configure Odoo with Nginx as Reverse Proxyhttps://www.cybrosys.com/blog/how-to-configure-odoo-with-nginx-as-reverse-proxyhttps://www.cybrosys.com/blog/how-to-enable-nginx-status-page-in-odoo-16

Hope it helps,

0
Avatar
Descartar
Avatar
Ahmad Mohamad Nour
Best Answer

i have same issue 

when i open pos from mobile 


0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Nginx error in Docker
nginx docker
Avatar
0
de febr. 20
4728
Error redirection url after logout with nginx proxy Solved
nginx proxy odoo
Avatar
Avatar
Avatar
3
de maig 24
24147
Odoo 16 Multi Worker Configuration
nginx proxy odoo16features
Avatar
0
d’oct. 22
5067
Reverse proxy not passing correctly
nginx proxy reverse_proxy odoov11
Avatar
Avatar
1
de des. 20
10197
odoo13 dbfilter_from_header
nginx db_filter proxy 13
Avatar
Avatar
1
de gen. 20
5548
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now