Caddyfile (490B)
1 2 http://localhost:8080 { 3 4 log stdout 5 root {$PWD}/webroot 6 ext .html 7 header /private Cache-Control "no-cache, no-store, must-revalidate" 8 9 jwt { 10 path /private 11 redirect /login 12 allow sub demo 13 } 14 15 login { 16 success_url /private 17 htpasswd file=passwords 18 redirect_host_file redirect_hosts.txt 19 user_file userfile.yml 20 # for testing, where no https is available, don't set the secure flag for the. 21 cookie_secure false 22 } 23 24 }