Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • 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
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Haproxy SSL configuration

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
sslLoadBalancer
2 Răspunsuri
6054 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
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. 


Imagine profil
Mehjabin Farsana
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,

Please refer the following blog

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

Regards

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
SSL
ssl
Imagine profil
Imagine profil
Imagine profil
3
mar. 18
4312
BUG W8/VISTA : URLError: <urlopen error (Errno 10061) from paypal return with SSL under W8
ssl
Imagine profil
0
mai 16
5580
Running OpenERP7 in SSL (XML-RPCS) mode
ssl
Imagine profil
0
mar. 15
4497
Openerp V8 over SSL
ssl
Imagine profil
Imagine profil
1
mar. 15
9631
Can anyone help me for fixing this? it said my website not secure
ssl https
Imagine profil
0
ian. 24
2753
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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