server {
    listen 80;
    #listen 443 ssl http2;
    charset utf-8;
    server_name applet.xx;

    proxy_set_header Host              $http_host;
    proxy_set_header X-Scheme          $scheme;
    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_pass_header Server;

    location /api {
        proxy_pass http://127.0.0.1:9900/api/v1/;
    }

    error_log  /tmp/applet_err.log;
    access_log /tmp/applet_acc.log main buffer=32k;

    #ssl_certificate     /www/server/panel/vhost/cert/aid.im/fullchain.pem;
    #ssl_certificate_key /www/server/panel/vhost/cert/aid.im/privkey.pem;
    #ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1;
    #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
    #ssl_prefer_server_ciphers on;
    #ssl_session_cache shared:SSL:10m;
    #ssl_session_timeout 10m;
}