# 启优学官网：域名和 HTTPS 启用前，暂时通过 80 端口提供服务。
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name "";
    client_max_body_size 28m;

    location / {
        proxy_pass http://127.0.0.1:8793;
        proxy_http_version 1.1;
        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_set_header X-Forwarded-Host $host;
    }
}
