server {
listen 443 ssl http2;
server_name openai.yundouclout.com;
ssl_certificate /home/ubuntu/fullchain.pem;
ssl_certificate_key /home/ubuntu/privkey.pem;

location / {

隐藏内容

此处内容需要权限查看

  • 普通0.1金币
  • 会员0.1金币
  • 永久会员0.1金币

         proxy_pass https://api.openai.com;
         proxy_redirect off;
         proxy_set_header Host $proxy_host:$proxy_port;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

     }
     access_log /var/log/nginx/openai.log;
     error_log /var/log/nginx/openai.error.log;

}

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注