Last active
February 1, 2023 20:12
-
-
Save marianocordoba/cea09031a25d55365811f54aebd4bbef to your computer and use it in GitHub Desktop.
Caddy server user data for AWS EC2
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
#!/bin/bash | |
sudo su | |
yum update -y | |
yum install yum-plugin-copr -y | |
yum copr enable @caddy/caddy -y | |
yum install caddy -y | |
printf ":80\nrespond \"Hello from $HOSTNAME\"" > /etc/caddy/Caddyfile | |
caddy start --config /etc/caddy/Caddyfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment