Skip to content

Instantly share code, notes, and snippets.

@curder
Created September 5, 2019 06:57
Show Gist options
  • Save curder/19a8e97019ad1d59256180e7d2004451 to your computer and use it in GitHub Desktop.
Save curder/19a8e97019ad1d59256180e7d2004451 to your computer and use it in GitHub Desktop.
KeyManger Nginx config

nginx.conf

server {
    listen 80;
    server_name domain.com;
    root /tmp/domain;

    location ~ /.well-known {
        allow all;
    }
}

将上面的配置文件编辑在nginx的配置文件中。

run shell

mkdir -p /tmp/domain/.well-known/pki-validation
echo verify_string > /tmp/domain/.well-known/pki-validation/fileauth.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment