Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • 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
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

SSL configuration nginx error

Odoberať

Get notified when there's activity on this post

This question has been flagged
nginxCommunitySSLv15
1 Odpoveď
6305 Zobrazenia
Avatar
Juan Gomez

I have an odoo 15 installation behind a Nginx proxy. I want to activate the SSL certificate with "cerbot"

Aug 16 12:28:07 vmi947915.contaboserver.net nginx[15998]: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/uwuthis.one:60


# Odoo server


upstream odooserver {


server 127.0.0.1:8069;

}

upstream odoochat {

server 127.0.0.1:8072;

}


#HTTP -> HTTPS

server {

listen [::]:80;

listen 80;

server_name uwuthis.one;

return 301 https://uwuthis.one$request_uri;

}


# WWW -> NON

server {

listen [::]:443 ssl;

listen 443 ssl http2;

server_name uwuthis.one;

ssl_certificate /etc/letsencrypt/live/uwuthis.one/fullchain.pem;


ssl_certificate_key /etc/letsencrypt/live/uwuthis.one/privkey.pem;


ssl_trusted_certificate /etc/letsencrypt/live/uwuthis.one/chain.pem;


include snippets/ssl.conf;


include snippets/letsencrypt.conf;


return 301 https://uwuthis.one$request_uri;

}


server {

listen 443 ssl http2;

server_name uwuthis.one;

proxy_read_timeout 720s;

proxy_connect_timeout 720s;

proxy_send_timeout 720s;


#Proxy headers

proxy_set_header X-Forwarded-Host $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_set_header X-Real-IP $remote_addr;


#SSL parameters

ssl_certificate /etc/letsencrypt/live/uwuthis.one/fullchain.pem;

ssl_certificate_key /etc/letsencrypt/live/uwuthis.one/privkey.pem;

ssl_trusted_certificate /etc/letsencrypt/live/uwuthis.one/chain.pem;

include snippets/ssl.conf;

include snippets/letsencrypt.conf;

}


#log files

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

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


# Specifies the maximum accepted body size of a client request,

# as indicated by the request header Content-Length.


client_max_body_size 200m;


# increase proxy buffer to handle some odoo web requests

proxy_buffers 16 64k;

proxy_buffer_size 128k;


# Redirect longpoll requests to odoo longpolling port

  location /longpolling {

    proxy_pass http://odoochat;

  }


  # Redirect requests to odoo backend server

  location / {

    proxy_redirect off;

    proxy_pass http://odoo;

  }


# Cache static files

location ~* /web/static/ {

proxy_cache_valid 200 90m;

proxy_buffering on;

expires 864000;

proxy_pass http://odooserver;

}


# Gzip

gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;

gzip on;

}

0
Avatar
Zrušiť
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

Please go through my forum answer.

Question : https://www.odoo.com/forum/help-1/ssl-configuration-nginx-error-208409

Answer : The location directive should be in the server directive, which in turn should be in the http directive.


http {

    server {

        location /some-path {

            proxy_pass             http://1.2.3.4;

        }

    }

}


Hope it helps

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Attach Qweb Report PDF file in a binary field Solved
Community v15
Avatar
Avatar
2
apr 24
9733
Up-gradation From Odoo 15 to Odoo 16 Solved
Community v15
Avatar
Avatar
1
aug 23
2998
Unable to log into Odoo15 Backend via Nginx reverse proxy Solved
nginx Configuration v15
Avatar
Avatar
Avatar
Avatar
3
máj 24
8746
TAX Configuration issue showing while creating new Invoice
tax Community v15
Avatar
Avatar
Avatar
Avatar
Avatar
5
nov 23
10931
Need help calling onchange method or similar from xmlrpc API
xmlrpc Community v15
Avatar
Avatar
1
feb 23
3678
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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