502 Error When Reverse Proxying the OPENAI API with Nginx
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文
Use the following code to proxy requests
location / {
proxy_pass https://api.openai.com;
proxy_set_header Host $proxy_host;
proxy_buffering off;
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
}
Last updated 2024-01-14
Comments 0