Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

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

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
chatterlivechatapache2reverse_proxyv14
1 Responder
8761 Visualizações
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
Cancelar
Meng Xi Zhu

Have you figured out how to correct this behaviour?

Avatar
ANGEL ALVAREZ RIVADENEYRA
Melhor resposta

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
Cancelar
Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
Is there a way to pin a chat in odoo 14?
chatter v14
Avatar
Avatar
1
dez. 22
3734
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
5172
How to Hide Chatter Resolvido
chatter v14
Avatar
Avatar
2
out. 20
8917
Reverse Proxy sometime does not load in different browsers
apache2 reverse_proxy
Avatar
0
mai. 19
5099
Change chatter position to bottom permanently Resolvido
chatter styles v14
Avatar
Avatar
Avatar
2
fev. 24
10034
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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