Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Odoo Community Edition 14 behind Apache reverse proxy - Help needed for chat

Odebírat

Get notified when there's activity on this post

This question has been flagged
chatterlivechatapache2reverse_proxyv14
1 Odpovědět
8780 Zobrazení
Avatar
Sergio Martinelli

Hi, as the title suggest, I have an Odoo 14.0 Community Edition setup behind reverse proxy. My scenario is quite simple, and everythign works, except odoo chat (both internal and external). I have:
- a 100mb/10mb line, with no static IP
- various VM on local network with many subdomains. 
- Apache reverse proxy VM, with port 80 and 443 forwarded to it
- Openwrt router with DDNS service to update my IP to the service, and external DNS setted to have my domains point to my IP

-Odoo VM is in the local network, serving on port 8069. Local IP address is assigned by DHCP, and I don't care to have it static because apache reverseproxy in my setup is name based. So I just stick with the VM hostname in the apache config.

- /etc/odoo/odoo.conf has the line "Proxy Mode = True", 4 workers and 1 chron job on 4cpu vm
- at first created apache virtual server on port 80 (http) that points to my Odoo 14 VM. Odoo docs give example only for NGINX, so I will paste here my config:

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /longpolling/ http://host:8072/ retry=0
ProxyPassReverse /longpolling/ http://host:8072/ retry=0
ProxyPass / http://host:8069/ retry=0
ProxyPassReverse / http://host:8069/ retry=0

( change "http://host" with VM local hostname)


- after creating http entry that points to odoo vm, it's time to upgrade it to https: to do this i use Let's Encrypt. ssh to the proxy VM, and launch this command:

sudo certbot

The tool will asks you wich site you want to upgrade, and if you want a redirect, I choose YES.

- Now, on proxy VM you have to open and edit the new site's (port 443) config file. To do this I use webmin, but you can also use ssh and nano or vim. We need to add this line to avoid https redirecting loops:

RequestHeader set X-Forwarded-Proto "https"


After all that you can restart apache2 and odoo and https://yourdomain.com should work. At least, mine do. 

But the internal chat has a weird behave, you can open it, write message, you can't see your message, but if you refresh the page, the written message finally appear

I will do another test disabling multithread support with workers=0, and see if that will do the trick but I still don't understand what I've done wrong. Any help would be appreciated, thank you very much.


EDIT: I've tried disabling workers, and longpolling proxy entry and it works! So it has to be something to do with longpolling port.
Chechek in the conf, 8072 is right, tried also with "host:8072/" and "host:8072/longpolling/" but no changes in behaviour. Longpolling doesn't work for me behind apache2

0
Avatar
Zrušit
Meng Xi Zhu

Have you figured out how to correct this behaviour?

Avatar
ANGEL ALVAREZ RIVADENEYRA
Nejlepší odpověď

Hi, I don't know if it still works for you, but this is my configuration.

ProxyPass /longpolling/ http://127.0.0.1:8072/longpolling/ retry=0

ProxyPassReverse /longpolling/ http://127.0.0.1:8072/longpolling/ retry=0

ProxyPass / http://127.0.0.1:8069/ retry=0

ProxyPassReverse / http://127.0.0.1:8069/ retry=0

You need to put this: http://127.0.0.1:8072/longpolling/

If not the url is incomplete

This works for me, regards!

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Is there a way to pin a chat in odoo 14?
chatter v14
Avatar
Avatar
1
pro 22
3740
File "/opt/odoo14/odoo/addons/bus/controllers/main.py", line 35, in poll raise Exception("bus.Bus unavailable") Exception
apache2 v14
Avatar
0
bře 22
5179
How to Hide Chatter Vyřešeno
chatter v14
Avatar
Avatar
2
říj 20
8926
Reverse Proxy sometime does not load in different browsers
apache2 reverse_proxy
Avatar
0
kvě 19
5101
Change chatter position to bottom permanently Vyřešeno
chatter styles v14
Avatar
Avatar
Avatar
2
úno 24
10069
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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