mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-18 07:23:30 +02:00
12 lines
417 B
Text
12 lines
417 B
Text
# Nginx UI Template Start
|
|
name = "Let's Encrypt"
|
|
author = "@0xJacky"
|
|
description = { en = "Let's Encrypt HTTPChallange", zh_CN = "Let's Encrypt HTTP 鉴权"}
|
|
# Nginx UI Template End
|
|
|
|
location ~ /.well-known/acme-challenge {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real_IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
|
proxy_pass http://127.0.0.1:{{.HTTP01PORT}};
|
|
}
|