Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Kecerdasan Buatan
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Konsultasi
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

SSL configuration nginx error

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
nginxCommunitySSLv15
1 Balas
7327 Tampilan
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
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Attach Qweb Report PDF file in a binary field Diselesaikan
Community v15
Avatar
Avatar
2
Apr 24
11165
Up-gradation From Odoo 15 to Odoo 16 Diselesaikan
Community v15
Avatar
Avatar
1
Agu 23
3875
Unable to log into Odoo15 Backend via Nginx reverse proxy Diselesaikan
nginx Configuration v15
Avatar
Avatar
Avatar
Avatar
3
Mei 24
10328
TAX Configuration issue showing while creating new Invoice
tax Community v15
Avatar
Avatar
Avatar
Avatar
Avatar
5
Nov 23
12548
Need help calling onchange method or similar from xmlrpc API
xmlrpc Community v15
Avatar
Avatar
1
Feb 23
4648
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Karir
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah software terintegrasi dengan 70+ aplikasi seperti CRM, Akuntansi, Inventaris, Sales, eCommerce, Marketing, POS; plus fitur lokal Indonesia!

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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