Skip to content

Commit

Permalink
Add Caddyfile and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcTn committed Sep 21, 2023
1 parent 12ac4f4 commit dcc699b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bins.rmctiernan.com # Hard coded for now

reverse_proxy :3000
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ setup-caddy:
ssh ${USER}@${WHAT_BIN_HOST} "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --batch --yes --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg"
ssh ${USER}@${WHAT_BIN_HOST} "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list"
ssh ${USER}@${WHAT_BIN_HOST} "sudo apt update"
ssh ${USER}@${WHAT_BIN_HOST} "sudo apt install -y caddy"
ssh ${USER}@${WHAT_BIN_HOST} "sudo apt install -y caddy" # Installing like this will auto run the systemd service

deploy-caddy:
make host-set-check
# TODO: Check the default caddyfile doesn't have important things we've not included in our caddyfile
scp -r ./Caddyfile ${USER}@${WHAT_BIN_HOST}:/etc/caddy/Caddyfile # Default caddyfile config location in the systemd service

BIN_SERVICE=whatbin.service
GECKODRIVER_SERVICE=geckodriver.service
Expand Down

0 comments on commit dcc699b

Please sign in to comment.