- CloudFront の Origin Custom Headers に秘密の鍵を設定する
X-Pre-Shared-Key : aen1caixahCha4Eb1aeKohpeeshii7quaiz7eT9Aequae3hophah0uh3lecoquoo
みたいな
- Nginx に以下の設定を入れる
location / {
if ($http_x_pre_shared_key = "aen1caixahCha4Eb1aeKohpeeshii7quaiz7eT9Aequae3hophah0uh3lecoquoo") {
return 200 "OK";
}
return 403;