This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setcap cap_net_bind_service=+ep /usr/local/bin/caddy | |
nano /etc/systemd/system/caddy.service | |
semanage fcontext -a -t httpd_exec_t /usr/local/bin/caddy | |
restorecon /usr/local/bin/caddy | |
chown www-data:www-data /etc/ssl/caddy/ | |
semanage fcontext -a -t httpd_sys_rw_content_t /etc/ssl/caddy | |
restorecon /etc/ssl/caddy |