• หน้าแรก
  • หลักสูตร
  • บทความ
  • ร้านค้า
  • ติดต่อเรา
    มีคำถามเกี่ยวกับ odoo ?
    (02) 4302475
    info@odoothaidev.com
    Login
    Odoothaidev - We are Odoo professional in Thailand
    • หน้าแรก
    • หลักสูตร
    • บทความ
    • ร้านค้า
    • ติดต่อเรา

      Nignx Proxy

      • บ้าน
      • บล็อก
      • Nignx Proxy
      • Upgrade Insecure Requests on Nginx สำหรับ Odoo 16

      Upgrade Insecure Requests on Nginx สำหรับ Odoo 16

      • โพสโดย alex
      • หมวดหมู่ Nignx Proxy, Odoo 16
      • วันที่ พฤศจิกายน 23, 2022
      “Upgrade Insecure Requests” is a CSP (Content Security Policy) directive that allows you to indicate to HTTP clients/browsers that all resources must be accessed via HTTPS.To enable it on the Nginx web server, you just need to add the script to your Nginx configuration file.

      add_header 'Content-Security-Policy' 'upgrade-insecure-requests';

      Be aware that upgrade-insecure-requests is not supported in all browsers, e.g. Safari and IE.

      แก้ปัญหา

      Mixed Content: The page at 'https://a.example.com/static/' was loaded over HTTPS, but requested an insecure stylesheet 'http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css'. This request has been blocked; the content must be served over HTTPS.
      
      โดยการใส่ 'upgrade-insecure-requests';
      
      
      server {
          listen 80;
          listen 443;
          server_name a.example.com;
          add_header Content-Security-Policy upgrade-insecure-requests;
      
          if ($scheme != "https") {
             return 301 https://$server_name$request_uri;
             #rewrite ^ https://$server_name$request_uri? permanent;
          }
      
      
          ssl on;
          ssl_certificate /etc/nginx/ssl/example.crt;
          ssl_certificate_key /etc/nginx/ssl/example.key;
      
          ssl_session_timeout 5m;
      
          ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
          ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
          ssl_prefer_server_ciphers on;
      
          gzip on;
          gzip_proxied any;
          gzip_types text/plain application/xml application/json;
          client_max_body_size 8M;
          access_log /var/log/nginx/example.log;
          location / {
                  proxy_pass http://10.10.10.110:5000;
                  proxy_set_header  X-Real-IP  $remote_addr;
                  proxy_set_header Host $host;
          }
          location ^~ /static/ {
      
                  proxy_pass http://10.10.10.110:8888;
                  proxy_set_header  X-Real-IP  $remote_addr;
                  proxy_set_header Host $host;
                 #proxy_set_header Content-Security-Policy upgrade-insecure-requests;
          }
      • Share:
      อวตารของผู้เขียน
      alex

      โพสต์ก่อนหน้า

      Installing Odoo (enterprise) on Ubuntu
      พฤศจิกายน 23, 2022

      โพสต์ถัดไป

      Open Source คืออะไร
      พฤศจิกายน 29, 2022

      คุณอาจชอบ

      V16 Planned Date of Tasks are invisible.
      12 กุมภาพันธ์, 2023

      Step 1: Enable debug(developer) mode. St …

      ค้นหาบทความ

      หมวดหมู่

      หมวดหมู่

      • Accounting
      • Adobe XD
      • API
      • Blog
      • Business
      • Buttons
      • CRM
      • Custom Fields
      • Design / Branding
      • Django
      • Ecommerce
      • ERP
      • ERP Flow
      • Express
      • Flectra
      • Form View
      • Frontend
      • Github
      • Github
      • Grant Chart
      • Header
      • iReport
      • Jasper Server & Server
      • Jaspersoft Studio
      • Java
      • JSON-RPC
      • Lazada
      • Linux
      • MLM
      • MRP
      • Nignx Proxy
      • NodeJS
      • Odoo 10
      • Odoo 12 Module
      • Odoo 13
      • Odoo 14 Development
      • Odoo 16
      • Odoo 8
      • Odoo 9
      • Odoo API
      • Odoo Certification
      • Odoo Developer
      • Odoo Ebook
      • Odoo Enterprise
      • Odoo ERP
      • Odoo Event
      • Odoo Implement
      • Odoo Inventory
      • Odoo Report
      • Odoo Security
      • Odoo V15
      • Open Source
      • Open-office
      • OpenERP 7.0
      • PhantomJS
      • Postgres SQL
      • Programming Language
      • Project Management
      • Python
      • Python3
      • Qweb
      • Reporting ระบบรายงาน
      • RML Report
      • Search View and Filters
      • Social Network
      • Statusbar
      • Ubuntu
      • Uncategorized
      • Voip & Call Center
      • Warehouse Management
      • WMS
      • Woocommerce
      • Workflow
      • XML-RPC
      • การ Implement
      • การเก็บข้อมูล Pre-Requirement
      • การเตรียมตัวเพื่อใช้งาน erp
      • ความรู้ด้านการตลาด CRM
      • ธีมเว็บไซต์ Odoo
      • ธุรกิจบริการ
      • ธุรกิจประเภทจัดอบรมสัมมนา
      • ธุรกิจสิ่งพิมพ์
      • นักพัฒนา
      • ประเภทธุรกิจที่เหมาะกับ Odoo
      • ระบบบัญชี
      • ระบบเคลม
      • ลิขสิทธิ์ – License
      Introduction LearnPress – LMS plugin

      Introduction LearnPress – LMS plugin

      Free
      From Zero to Hero with Nodejs

      From Zero to Hero with Nodejs

      Free
      Learn Python – Interactive Python

      Learn Python – Interactive Python

      $69.00

      บทความล่าสุด

      Securing Odoo logins with fail2ban
      22พ.ค.2023
      V16 Planned Date of Tasks are invisible.
      12ก.พ.2023
      Odoo Implement Methodology
      29พ.ย.2022
      (02) 430-2475
      info@odoothaidev.com
      Facebook Twitter Google-plus Pinterest

      Odoothaidev by OdooTeaM.

      • Privacy
      • Terms
      • Sitemap
      • Purchase

      เข้าสู่ระบบด้วยบัญชีเว็บไซต์ของคุณ

      ลืมรหัสผ่าน?

      Click to Copy