Skip to content

Instantly share code, notes, and snippets.

View bakatz's full-sized avatar
👨‍💻

Ben Katz bakatz

👨‍💻
View GitHub Profile
@bakatz
bakatz / coolify.tf
Created August 29, 2024 07:34
Coolify postgres issue repro
resource "aws_security_group" "allow_coolify_ui_ingress" {
name = "allow_coolify_ui_ingress"
vpc_id = data.aws_vpc.default.id
}
resource "aws_vpc_security_group_ingress_rule" "allow_coolify_ui_ingress_ipv4_rule" {
security_group_id = aws_security_group.allow_coolify_ui_ingress.id
cidr_ipv4 = "0.0.0.0/0"
ip_protocol = "tcp"
@bakatz
bakatz / import_dotenv_to_gh_and_kamal.sh
Last active August 8, 2024 02:26
Import your .env files to GitHub Actions and generate a Kamal .env.erb referencing all of them
#!/bin/bash
# Check if .env file is provided as argument
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <path-to-.env-file>"
exit 1
fi
ENV_FILE=$1