Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

How to configure nginx proxy manager for odoo 16?

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
apinginxproxydocker
9 Replies
17753 Rodiniai
Portretas
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
Portretas
Atmesti
Riccardo Branoner
Autorius

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?

Portretas
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
Portretas
Atmesti
Riccardo Branoner
Autorius

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!

:-)

Portretas
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
Portretas
Atmesti
Riccardo Branoner
Autorius

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

Portretas
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
Portretas
Atmesti
Portretas
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
Portretas
Atmesti
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 ?

Portretas
Adil Akbar
Best Answer

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

Hope it helps

0
Portretas
Atmesti
Portretas
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

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

0
Portretas
Atmesti
Portretas
Riccardo Branoner
Autorius 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
Portretas
Atmesti
Portretas
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
Portretas
Atmesti
Portretas
Ahmad Mohamad Nour
Best Answer

i have same issue 

when i open pos from mobile 


0
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

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

Registracija
Related Posts Replies Rodiniai Veikla
Nginx error in Docker
nginx docker
Portretas
0
vas. 20
4728
Error redirection url after logout with nginx proxy Solved
nginx proxy odoo
Portretas
Portretas
Portretas
3
geg. 24
24147
Odoo 16 Multi Worker Configuration
nginx proxy odoo16features
Portretas
0
spal. 22
5067
Reverse proxy not passing correctly
nginx proxy reverse_proxy odoov11
Portretas
Portretas
1
gruod. 20
10197
odoo13 dbfilter_from_header
nginx db_filter proxy 13
Portretas
Portretas
1
saus. 20
5548
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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