cat Caddyfile
{
http_port 6888
https_port 9999
servers {
listener_wrappers {
http_redirect
tls
}
}
}
*.vimll.com {
tls {
dns alidns {
access_key_id {env.ALIYUN_ACCESS_KEY_ID}
access_key_secret {env.ALIYUN_ACCESS_KEY_SECRET}
}
}
@home host home.vimll.com
handle @home {
root * /data/wordpress/html
php_fastcgi 172.20.94.198:9000
file_server
encode gzip
@disallowed {
path /xmlrpc.php
path *.sql
path /wp-content/uploads/*.php
}
rewrite @disallowed '/index.php'
handle_path /download/* {
root * /data/software
file_server browse
}
}
@p host p.vimll.com
handle @p {
reverse_proxy http://172.20.132.200:20800
}
}