Konfigurasi proxy SSL menggunakan nginx

Berikut adalah contoh konfigurasi proxy SSL menggunakan nginx :


server {
     listen  [IP PROXY]:443;
     server_name [DOMAIN RESELLER];

     ssl_certificate      [FILE CRT];
     ssl_certificate_key  [FILE KEY];

     location / {
               proxy_pass http://srb[RESELLERID].srs-x.com:80;
               proxy_redirect off;
               proxy_set_header Host [DOMAIN RESELLER];
               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
               proxy_set_header X-Real-IP $remote_addr;
               proxy_set_header X-Forwarded-Proto $scheme;
               client_max_body_size    10m;
               client_body_buffer_size 128k;
               proxy_connect_timeout   90;
               proxy_send_timeout      90;
               proxy_read_timeout      90;
               proxy_buffers           32 32k;
               proxy_buffer_size       64k;
     }
}

Masukkan konfigurasi ini ke dalam konfigurasi vhost reseller. Pastikan [IP PROXY], [DOMAIN RESELLER], [FILE CRT], [FILE KEY], dan [RESELLER ID] telah disesuaikan.