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
    • Property 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
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

Localhost:8069 issues with ssl and reverse proxy

Subscribe

Get notified when there's activity on this post

This question has been flagged
paypalecommercereverse_proxywebsitesitemap
2 Replies
4659 Views
Avatar
Modern Love, Mark Ballash

Hi - I have two issues that are causing me grief. Am running Odoo 16 Community in a docker environment with nginx on Ubuntu 20.04.

1.  The generated sitemap has addresses using localhost:8069 instead of my domain name.

http://localhost:8069/website/infohttp://localhost:8069/eventshttp://localhost:8069/termshttp://localhost:8069/blog 

2 - I have installed Paypal module to handle website payments and everything works except the return address from paypal also has localhost:8069 as the address, despite me manually putting a return address in my Paypal account setup.

 

I have set the system parameter to my domain name and added the freeze parameter, this has had no effect on either issue.

From searching the only thing I think it could be is there is something wrong with the reverse proxy setup in nginx, though my gut says both these problems are coming from Odoo not the web server.  Here is my odoo.conf file:

server {

    server_name mydomain.com;


    access_log  /var/log/nginx/odoo.access.log;

    error_log   /var/log/nginx/odoo.error.log;


    location / {

      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

      proxy_set_header X-Real-IP $remote_addr;

      proxy_set_header X-Forwarded-Host mydomain.com;

      proxy_set_header X-Forwarded-Proto https;

      proxy_pass http://localhost:8069;


  }


    listen [::]:443 ssl ipv6only=on; # managed by Certbot

    listen 443 ssl; # managed by Certbot

    ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; # managed by Certbot

    ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; # managed by Certbot

    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot

    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}

server {

    if ($host = mydomain.com) {

        return 301 https://$host$request_uri;

    } # managed by Certbot



    listen       80;

    listen       [::]:80;

    server_name  mydomain.com;

    return 404; # managed by Certbot



}


Anything wrong here?

For for the sitemap I have tried deleting the sitemap-1.xml attachment, it always regenerates a new sitemap, still with the localhost addresses!

 

Any help would be appreciated!

 

Thanks,

 

Mark


0
Avatar
Discard
Cybrosys Techno Solutions Pvt.Ltd

Hi,
Please go through our blog How to Configure Odoo with Nginx as Reverse Proxy
https://www.cybrosys.com/blog/how-to-configure-odoo-with-nginx-as-reverse-proxy

Avatar
Kayes
Best Answer

Hi Mark, 

I am having the same issue, did you find the solution for it? 

0
Avatar
Discard
Avatar
Modern Love, Mark Ballash
Author Best Answer

I read the response by  Cybrosys Techno Solutions Pvt.Ltd Am not too sure it was helpful.

The reverse proxy I have does work to access the site over https.  Problem is with the sitemap and address passed to paypal.  These seem to be internal issues within Odoo no?  Odoo generates and writes the sitemap correct?  And the return address that gets passed to paypal comed from odoo? 


Mark

0
Avatar
Discard
Modern Love, Mark Ballash
Author

Kayes - yes I did find a solution - it was to abandon using docker and just do a normal install of Odoo. The Odoo config file need a setting to tell it it is operating in a reverse proxy scenario. I can't quite remember something like proxy = 1. I searched and searched but could find no way to pass that setting to the Odoo installation from the Docker configs...

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
Add to cart code if using odoo web.
ecommerce website
Avatar
0
Apr 25
1952
Is it possible to have 3 websites on same odoo instance(Odoo Online)
ecommerce website
Avatar
Avatar
1
May 24
5729
pause Ecommerce store - vacation mode?
ecommerce website
Avatar
Avatar
1
Apr 24
3553
Website Product Block Image Low Quality
ecommerce website
Avatar
0
Nov 25
2640
What is the fastest website solution?
ecommerce website
Avatar
Avatar
1
May 23
5969
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 Svenska ภาษาไทย 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