Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
chatterlivechatapache2reverse_proxyv14
1 Odpoveď
8782 Zobrazenia
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šiť
Meng Xi Zhu

Have you figured out how to correct this behaviour?

Avatar
ANGEL ALVAREZ RIVADENEYRA
Best Answer

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šiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Is there a way to pin a chat in odoo 14?
chatter v14
Avatar
Avatar
1
dec 22
3742
File "/opt/odoo14/odoo/addons/bus/controllers/main.py", line 35, in poll raise Exception("bus.Bus unavailable") Exception
apache2 v14
Avatar
0
mar 22
5181
How to Hide Chatter Solved
chatter v14
Avatar
Avatar
2
okt 20
8934
Reverse Proxy sometime does not load in different browsers
apache2 reverse_proxy
Avatar
0
máj 19
5102
Change chatter position to bottom permanently Solved
chatter styles v14
Avatar
Avatar
Avatar
2
feb 24
10071
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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