Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    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 Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & 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
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How do I force SSL on my website using Cloudflare?

Subscribe

Get notified when there's activity on this post

This question has been flagged
v11cloudflare
3 Replies
14397 Views
Avatar
Bruce Letterle

I have Odoo v11 running on Odoo.sh and am using Cloudflare for DNS management. SSL is turned on at Cloudflare and it works when I visit my site with https://, but I would like to force SSL even when someone types http://. I changed the  web.base.url to use https: under Technical->System Parameters, but that doesn't seem to force the URLs to use SSL. Any other thoughts?

0
Avatar
Discard
Avatar
Ermin Trevisan
Best Answer

Odoo.sh does not support SSL (yet). Odoo does recommend to use a third party service such as Cloudflare, but this is not a real solution. Please read first how it works and why Cloudflare itself does not recommend to use this option "Flexible SSL" for security reasons: https://support.cloudflare.com/hc/en-us/articles/200170416-What-do-the-SSL-options-mean-

It should only be used as a last resort if you are not able to setup SSL on your own web server, but it is less secure than any other option (even “Off”), and could even cause you trouble when you decide to switch away from it: How do I fix the infinite redirect loop...


So you should not downvote the messenger, but the lack of service from Odoo. To me this is a show stopper for odoo.sh.

2
Avatar
Discard
Bruce Letterle
Author

Actually, the FAQ at odoo.sh says this about SSL- "To enable SSL, you can use a third-party CDN service provider such as CloudFlare.com.". I've setup SSL at Cloudflare and I can access my site using https:

Ermin Trevisan

You can be sure that I'm very well able to read the documentation. Secondly, you should really try to understand what it is all about in the first place. Cloudflare is a third party provider and not Odoo. Therefore my statement is 100% correct and you should well be aware about the corresponding security risks, as elaborated in my amended answer.

Bruce Letterle
Author

First, I should clarify that I am not using this website for ecommerce or anything that requires a valid SSL solution. I am just addressing the fancy green lock symbol issue for SEO and the Cloudflare SSL addresses this. Your answers are entirely correct and I completely agree that Odoo needs to fix this on Odoo.sh. For me to implement a complete secure solution for a client, we would move to our own servers and not use odoo.sh.

Yenthe Van Ginneken (Mainframe Monkey)

This is actually a good and valid answer, which shouldn't have had a downvote honestly. I've accepted your answer as it is the truth and it is a lack in SH.

Avatar
Hasan Qureshi
Best Answer

Guys, we have implemented Cloudflare on a customer website eFlorist.pk successfully. powered by Odoo community version 14. We have installed Let's Encrypt SSL + enable Cloudflare SSL/TLS encryption mode as full or flexible. Please see picture below.  You also need to enabled Cloudflare proxy in Cloudflare DNS.





0
Avatar
Discard
Avatar
Bruce Letterle
Author Best Answer

Thanks to Ermin's answer, I just checked the Cloudflare support articles and found the answer. In the Crypto section, there is an option called Always use HTTPS. It will redirect all requests with scheme “http” to “https”. This applies to all http requests to the zone. Seems to work perfectly!

0
Avatar
Discard
Ermin Trevisan

Seeing a fancy green lock symbol in your browser is not the whole story. Read first what it is all about and why Cloudflare itself is not recommending using "Flexible SSL" in the link of my amended answer.

Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
When Odoo reserves stock for Sales Orders, can it do so taking into account the Date of the Order? Solved
v11
Avatar
Avatar
1
Apr 22
10321
How can I prevent users from archiving Products? I only want certain users to be able to do this? Solved
v11
Avatar
Avatar
Avatar
2
Nov 25
9623
Session expired (invalid CSRF token)
v11
Avatar
Avatar
1
Jul 21
24371
V11 Connect with Shopware Solved
v11
Avatar
Avatar
Avatar
Avatar
Avatar
6
Aug 20
6280
[Odoo v11] line 686, in call_kw_multi ids, args = args[0], args[1:] IndexError: list index out of range
v11
Avatar
Avatar
1
May 20
6677
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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