Skip to content

Instantly share code, notes, and snippets.

@tudou-wp
tudou-wp / lnmp-ssl-vhost.conf
Last active November 5, 2018 11:05
lnmp-ssl-vhost.conf
server {
listen 80;
server_name example.suffix www.example.suffix;
location ^~ /.well-known/acme-challenge/ {
alias /home/wwwroot/www.example.suffix/.well-known/acme-challenge/;
try_files $uri = 404;
}
location / {
# only modify the values, key files will be generated automaticly.
ACCOUNT_KEY="example-account.key"
DOMAIN_KEY="example.suffix.key"
DOMAIN_DIR="/home/wwwroot/www.example.suffix"
DOMAINS="DNS:example.suffix,DNS:www.example.suffix"
#ECC=TRUE
#LIGHTTPD=TRUE
@tudou-wp
tudou-wp / lnmp-letsencrypt.conf
Last active November 5, 2018 11:01
lnmp-letsencrypt.conf
# only modify the values, key files will be generated automaticly.
ACCOUNT_KEY="example-account.key"
DOMAIN_KEY="example.suffix.key"
DOMAIN_DIR="/home/wwwroot/example.suffix"
DOMAINS="DNS:example.suffix,DNS:www.example.suffix"
#ECC=TRUE
#LIGHTTPD=TRUE