learn:linode-caddy
在 linode 上用 caddy 開起對外服務
- 裝 caddy
- 設定 /etc/Caddyfile
- 開啟 caddy.service:
systemctl start caddy
- 關 SELINUX
- 關 firewalld:
systemctl stop firewalld
SELinux
- snippet.bash
# vim /etc/selinux/config SELINUX=disabled
Firewall
- snippet.bash
firewall-cmd --permanent --zone=public --add-port=80/tcp --permanent firewall-cmd --permanent --zone=public --add-port=443/tcp --permanent firewall-cmd --set-default-zone=public firewall-cmd --reload
learn/linode-caddy.txt · 上一次變更: 2024/04/11 07:11 由 admin_wi1d5ky