server-configs-nginx/h5bp/security
Vincent Herbet d2f597235a Do no use non-ASCII characters in loaded configs
I had an issue with Certbot (let's encrypt) which failed to reload nginx due to a non-ASCII character in a loaded config file.
E.g.: `Attempting to renew cert (domain.com) from /etc/letsencrypt/renewal/domain.com.conf produced an unexpected error: 'ascii' codec can't decode byte 0xe2 in position 762: ordinal not in range(128). Skipping.`

I found this character using `grep -r -P '[^\x00-\x7f]' /etc/nginx`.
2020-02-05 18:33:14 +01:00
..
content-security-policy.conf Documentation formatting and reviewing (#232) 2019-05-15 23:20:10 +02:00
referrer-policy.conf Stricter default for Referrer Policy 2020-01-03 19:36:51 +01:00
server_software_information.conf Documentation formatting and reviewing (#232) 2019-05-15 23:20:10 +02:00
strict-transport-security.conf Improve HSTS documentation 2020-01-03 19:34:40 +01:00
x-content-type-options.conf Documentation formatting and reviewing (#232) 2019-05-15 23:20:10 +02:00
x-frame-options.conf Do no use non-ASCII characters in loaded configs 2020-02-05 18:33:14 +01:00
x-xss-protection.conf Fix rebase artifacts 2019-05-16 00:16:59 +02:00