Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kamal/secrets
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ KAMAL_REGISTRY_PASSWORD=$(cat .kamal/keys/kamal_registry_password.key)
RAILS_MASTER_KEY=$(cat config/master.key)

POSTGRES_PASSWORD=$(cat .kamal/keys/postgres_password.key)
TUNNEL_TOKEN=$(cat .kamal/keys/cloudflare_token.key)
23 changes: 15 additions & 8 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ servers:
# Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
#
# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
# proxy:
# ssl: true
# host: giftbrain.app
# app_port: 3000
proxy:
ssl: false
host: giftbrain.app

# Credentials for your image host.
registry:
Expand Down Expand Up @@ -75,6 +74,14 @@ builder:
ssh:
user: ice-server

# NOTE: To clear kamal-proxy logs if they grow too large
# sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' kamal-proxy)
logging:
driver: json-file
options:
max-size: 10m
max-file: 3

accessories:
# db:
# image: postgres:16
Expand All @@ -92,10 +99,10 @@ accessories:
image: cloudflare/cloudflared:latest
roles:
- web
files:
- ./.kamal/cloudflare/credentials.json:/etc/cloudflared/credentials.json
- ./.kamal/cloudflare/config.yml:/etc/cloudflared/config.yml
cmd: tunnel --config /etc/cloudflared/config.yml run
env:
secret:
- TUNNEL_TOKEN
cmd: tunnel run
redis:
image: redis:latest
roles:
Expand Down