From aac75cfab234d02a6ad7c38a8f4e3f932979fa69 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sat, 11 Jan 2025 22:37:45 -0800 Subject: [PATCH] add post-deploy ufw --- .kamal/hooks/{post-deploy.sample => post-deploy} | 4 +++- config/deploy.yml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) rename .kamal/hooks/{post-deploy.sample => post-deploy} (63%) diff --git a/.kamal/hooks/post-deploy.sample b/.kamal/hooks/post-deploy similarity index 63% rename from .kamal/hooks/post-deploy.sample rename to .kamal/hooks/post-deploy index f0d8179..b99f40e 100755 --- a/.kamal/hooks/post-deploy.sample +++ b/.kamal/hooks/post-deploy @@ -11,4 +11,6 @@ # KAMAL_DESTINATION (if set) # KAMAL_RUNTIME -echo ">>>>>>>>>>>>>>>> $KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds" +echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds" +ufw allow 80/tcp +ufw allow 443/tcp \ No newline at end of file diff --git a/config/deploy.yml b/config/deploy.yml index b09252a..ac76285 100644 --- a/config/deploy.yml +++ b/config/deploy.yml @@ -114,6 +114,9 @@ accessories: - PGADMIN_DEFAULT_EMAIL - PGADMIN_DEFAULT_PASSWORD proxy: + ssl: true + forward_headers: true + app_port: 5050 host: pgadmin.futureporn.net healthcheck: path: /login \ No newline at end of file