letsencrypt.conf 415 B

123456789101112
  1. # Nginx UI Template Start
  2. name = "Let's Encrypt"
  3. author = "@0xJacky"
  4. description = { en = "Let's Encrypt HTTPChallange", zh_CN = "Let's Encrypt HTTP 鉴权"}
  5. # Nginx UI Template End
  6. location /.well-known/acme-challenge {
  7. proxy_set_header Host $host;
  8. proxy_set_header X-Real_IP $remote_addr;
  9. proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
  10. proxy_pass http://127.0.0.1:{{.HTTP01PORT}};
  11. }