current position:Home>STM32 + esp8266 + air202 basic control chapter - 205 - server reverse proxy - Web server configuration HTTPS access (. Windows system)

STM32 + esp8266 + air202 basic control chapter - 205 - server reverse proxy - Web server configuration HTTPS access (. Windows system)

2022-04-29 13:43:02Yang Fengwu

Nginx To configure SSL

1. download nginx certificate

2. Copy certificate folder to nginx Of conf Catalog

3. Open the nginx.conf file

4. Amend this

5. Revised as follows

server {
    listen       443 ssl;
    server_name  mnif.cn; # Fill in the domain name of the binding certificate 
    ssl_certificate      2467785_www.mnif.cn_nginx/2467785_www.mnif.cn.pem;
    ssl_certificate_key  2467785_www.mnif.cn_nginx/2467785_www.mnif.cn.key;
    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Supported by TLS agreement 
    ssl_ciphers  ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;# Supported encryption algorithms 
    ssl_prefer_server_ciphers  on;
    location / {
    root   html;
    index  index.html index.htm;
    }
}

notes : The certificate path name can be modified according to your own

6. sign out nginx

7. start-up

8. test

https://mnif.cn/

copyright notice
author[Yang Fengwu],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291206149919.html

Random recommended