Python requests模块下载:从入门到工程化文件下载实战
2026/10/15 1:25:11
openSSL 需要安装并配置环境变量(记住安装位置)
nginx 下载解压即可
OPENSSL_HOME变量值D:\workspace\OpenSSL-Win64\bin(以自己实际安装路径为准)%OPENSSL_HOME%sslopenssl genrsa -des3 -out yy.key 1024openssl req -new -key yy.key -out yy.csrcopy yy.key yy.key.copyopenssl rsa -in yy.key.copy -out yy.keyserver { listen 8443 ssl; server_name localhost; # 替换为您的域名或IP ssl_certificate ./ssl/yy.crt; ssl_certificate_key ./ssl/yy.key; # SSL配置建议 ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; location / { root html; index index.html index.htm; } # 代理后端 API(关键配置) location /admin-api/ { # 将请求转发到后端服务器 proxy_pass http://localhost:8080/admin-api/; # 传递原始请求信息 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # 处理重定向 proxy_redirect off; # 超时设置 proxy_connect_timeout 60s; proxy_send_timeout 60s; proxy_read_timeout 60s; } }启动nginx 访问https 出现下面结果则说明配置成功