Skip to content

Instantly share code, notes, and snippets.

View pgporada's full-sized avatar
🕵️‍♂️
PKEye

Phil Porada pgporada

🕵️‍♂️
PKEye
View GitHub Profile
@pgporada
pgporada / caddy.sh
Created December 11, 2017 04:57 — forked from totoCZ/caddy.sh
caddy for SELinux
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