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

Haproxy SSL configuration

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
sslLoadBalancer
2 Respostas
6082 Visualizações
Avatar
Amit Bhardwaj

Hey team, 

I have setup Odoo inside a VM hosted on a bare-metal server accessible on public IP. I want to access Odoo UI over HTTPs backed by Let's encrypt SSL certificate. 

This is how haproxy configuration looks like: 

frontend odoo-fe

  bind ssl crt

  use_backend odoo-be


backend odoo-be

  mode http

  server odoo :8069 check


Using this configuration, I am unable to open odoo portal from internet and getting "ERR_CONNECTION_REFUSED" error. 


Is anyone using Odoo the same way? Please suggest changes in haproxy config for redirection and anything else that will be helpful. 




0
Avatar
Cancelar
Amit Bhardwaj
Autor

Hey,

Thanks for responding but this doesn't cover SSL related configuration. I am already done with Port 80 configuration without exposing credentials like suggested in the link you have shared. 


Avatar
Mehjabin Farsana
Melhor resposta

Hi,

It seems like you are trying to use HAProxy to route incoming HTTPS traffic to the Odoo server running on port 8069. Here are some steps you can follow to troubleshoot the issue:

  1. Verify that the firewall on the VM is allowing incoming HTTPS traffic on port 443.

  2. Check the Odoo server configuration to ensure it is listening on port 8069 and allowing incoming traffic from the HAProxy server.

  3. Verify that the SSL certificate configured in HAProxy is valid and matches the domain name used to access the Odoo portal.

  4. Check the HAProxy logs for any errors or warnings that might indicate a problem with the configuration.

  5. Test the configuration by accessing the Odoo portal from a browser on the same network as the VM to ensure that it is working correctly.

Here's an updated HAProxy configuration that you can use as a reference:


frontend odoo-fe
bind *:443 ssl crt /path/to/certificate.pem
mode tcp
option tcplog
default_backend odoo-be

backend odoo-be
mode tcp
option tcplog
server odoo-server :8069 check


Make sure to replace with the actual IP address of your Odoo server. Also, replace /path/to/certificate.pem with the path to your SSL certificate file.

frontend odoo-fe
bind *:443 ssl crt /etc/letsencrypt/live/example.com/fullchain.pem
mode http
option forwardfor
reqadd X-Forwarded-Proto:\ https
default_backend odoo-be

backend odoo-be
mode http
option forwardfor
server odoo :8069 check

HAProxy configuration that includes SSL encryption:


frontend odoo-fe
bind *:443 ssl crt /etc/letsencrypt/live/example.com/fullchain.pem
mode http
option forwardfor
reqadd X-Forwarded-Proto:\ https
default_backend odoo-be

backend odoo-be
mode http
option forwardfor
server odoo :8069 check

In this configuration:

  • bind *:443 ssl crt sets up the frontend to bind to port 443 and use SSL encryption. You should replace example.com with your domain name, and ensure that the Let's Encrypt certificate is installed on the server.
  • option forwardfor adds the client IP address to the HTTP headers so that Odoo can see the original IP address of the client.
  • reqadd X-Forwarded-Proto:\ https adds an X-Forwarded-Proto header to the HTTP request to indicate that the original request was made over HTTPS.
  • default_backend odoo-be specifies that requests should be forwarded to the odoo-be backend by default.
  • server odoo :8069 check specifies that the odoo server should handle requests, and checks that it is available.

Make sure to replace with the actual IP address of your Odoo server.

Hope this will help you

Thanks

0
Avatar
Cancelar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Melhor resposta

Hi,

Please refer the following blog

https://www.cybrosys.com/blog/configuring-haproxy-odoo

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
SSL
ssl
Avatar
Avatar
Avatar
3
mar. 18
4322
BUG W8/VISTA : URLError: <urlopen error (Errno 10061) from paypal return with SSL under W8
ssl
Avatar
0
mai. 16
5604
Running OpenERP7 in SSL (XML-RPCS) mode
ssl
Avatar
0
mar. 15
4510
Openerp V8 over SSL
ssl
Avatar
Avatar
1
mar. 15
9644
Can anyone help me for fixing this? it said my website not secure
ssl https
Avatar
0
jan. 24
2784
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