Skip to content

Instantly share code, notes, and snippets.

View solracsf's full-sized avatar
🌌
Working from the Milky Way

Git'Fellow solracsf

🌌
Working from the Milky Way
  • World Wide Web
  • Milky Way
  • 07:25 (UTC +02:00)
View GitHub Profile
@LoadLow
LoadLow / cf_pull_auth.macro
Created March 16, 2015 20:31
Nginx/Cloudflare pull authentication, Certificate and information here : https://origin-pull.cloudflare.com
if ($ssl_client_i_dn != "/C=US/O=CloudFlare, Inc./OU=Origin Pull/L=San Francisco/ST=California/CN=origin-pull.cloudflare.net") {
return 403;
}
ssl_verify_client on;
ssl_client_certificate /etc/nginx/ssl/origin-pull-ca.pem;
ssl_verify_depth 1;
if ($ssl_client_verify != "SUCCESS") {
return 403;