<commit_before>#!/bin/sh
HOST=${HOST:-localhost}
EMAIL=${EMAIL:-<EMAIL>}

cat << EOF > /etc/Caddyfile
$HOST
gzip

root /var/www/html

log stdout

errors {
    log stdout
    404 404.html
}
EOF

caddy --conf /etc/Caddyfile --agree --email $EMAIL<commit_msg>Use DNS Challenge for Letsencrypt<commit_after>#!/bin/sh
HOST=${HOST:-localhost}
EMAIL=${EMAIL:-<EMAIL>}
PROVIDER=${PROVIDER:-cloudflare}

cat << EOF > /etc/Caddyfile
$HOST
gzip

root /var/www/html

log stdout

errors {
    log stdout
    404 404.html
}
tls {
  dns $PROVIDER
}
EOF

caddy --conf /etc/Caddyfile --agree --email $EMAIL

{'fraction_non_alphanumeric': 0.1576271186440678, 'fraction_numerical': 0.020338983050847456, 'mean_word_length': 3.5114503816793894, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2720422', 'n_tokens_mistral': 256, 'n_tokens_neox': 239, 'n_words': 55}