Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • E-learning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Horeca & Hospitality
    • Bar en café
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van mede-eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brouwerij
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Diensten
    • Klusjesman
    • IT-hardware & ondersteuning
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Alle bedrijfstakken bekijken
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijsprogramma
    • Scale Up! Business Game
    • Odoo bezoeken
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Partner worden
    • Diensten voor partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Localhost:8069 issues with ssl and reverse proxy

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
paypalecommercereverse_proxywebsitesitemap
2 Antwoorden
4672 Weergaven
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
Annuleer
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
Beste antwoord

Hi Mark, 

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

0
Avatar
Annuleer
Avatar
Modern Love, Mark Ballash
Auteur Beste antwoord

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
Annuleer
Modern Love, Mark Ballash
Auteur

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...

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Add to cart code if using odoo web.
ecommerce website
Avatar
0
apr. 25
1956
Is it possible to have 3 websites on same odoo instance(Odoo Online)
ecommerce website
Avatar
Avatar
1
mei 24
5737
pause Ecommerce store - vacation mode?
ecommerce website
Avatar
Avatar
1
apr. 24
3561
Website Product Block Image Low Quality
ecommerce website
Avatar
0
nov. 25
2646
What is the fastest website solution?
ecommerce website
Avatar
Avatar
1
mei 23
5976
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Partner worden
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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