chore(config): Update environment and configuration files
- Update SMTP configuration to use Hostinger email settings - Add Jitsi configuration for custom meet domain - Enhance Makefile with comprehensive Docker and development commands - Update email template support email address - Improve environment example file with more detailed configuration Standardizes configuration across development and production environments, enhancing deployment flexibility and maintainability.
This commit is contained in:
parent
04f2d02afc
commit
b9fb4d4178
10
.env
10
.env
@ -20,11 +20,11 @@ STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
|
|||||||
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
|
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
|
||||||
|
|
||||||
# SMTP Configuration
|
# SMTP Configuration
|
||||||
SMTP_HOST=smtp.gmail.com
|
SMTP_HOST=smtp.hostinger.com
|
||||||
SMTP_PORT=587
|
SMTP_PORT=465
|
||||||
SMTP_USERNAME=your_email@gmail.com
|
SMTP_USERNAME=hello@attunehearttherapy.com
|
||||||
SMTP_PASSWORD=your_app_password
|
SMTP_PASSWORD="G&n2S;ffTc8f"
|
||||||
SMTP_FROM=your_email@gmail.com
|
SMTP_FROM=hello@attunehearttherapy.com
|
||||||
|
|
||||||
# Jitsi Configuration
|
# Jitsi Configuration
|
||||||
# JITSI_BASE_URL=https://meet.jit.si
|
# JITSI_BASE_URL=https://meet.jit.si
|
||||||
|
|||||||
@ -28,9 +28,10 @@ SMTP_FROM=your_email@gmail.com
|
|||||||
|
|
||||||
# Jitsi Configuration
|
# Jitsi Configuration
|
||||||
# For public Jitsi (meet.jit.si) - JWT not required, leave API_KEY and APP_ID empty
|
# For public Jitsi (meet.jit.si) - JWT not required, leave API_KEY and APP_ID empty
|
||||||
JITSI_BASE_URL=https://meet.jit.si
|
JITSI_BASE_URL=https://meet.attunehearttherapy.com
|
||||||
JITSI_API_KEY=
|
JITSI_API_KEY=your_jitsi_api_key
|
||||||
JITSI_APP_ID=
|
JITSI_APP_ID=attunehearttherapy_id
|
||||||
|
JITSI_PRIVATE_KEY=attunehearttherapy_jitsi_private_key
|
||||||
|
|
||||||
# For self-hosted Jitsi with JWT authentication - fill in these values
|
# For self-hosted Jitsi with JWT authentication - fill in these values
|
||||||
# JITSI_BASE_URL=https://meet.yourdomain.com
|
# JITSI_BASE_URL=https://meet.yourdomain.com
|
||||||
|
|||||||
58
Makefile
58
Makefile
@ -55,3 +55,61 @@ db-seed: build-cli
|
|||||||
dev-setup: deps
|
dev-setup: deps
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
@echo "Please update .env file with your configuration"
|
@echo "Please update .env file with your configuration"
|
||||||
|
|
||||||
|
# Docker commands
|
||||||
|
docker-build:
|
||||||
|
docker-compose build
|
||||||
|
|
||||||
|
docker-up:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
docker-down:
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
docker-logs:
|
||||||
|
docker-compose logs -f
|
||||||
|
|
||||||
|
docker-ps:
|
||||||
|
docker-compose ps
|
||||||
|
|
||||||
|
docker-restart:
|
||||||
|
docker-compose restart api
|
||||||
|
|
||||||
|
docker-clean:
|
||||||
|
docker-compose down -v
|
||||||
|
|
||||||
|
# Docker development
|
||||||
|
docker-dev:
|
||||||
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
|
||||||
|
|
||||||
|
docker-dev-build:
|
||||||
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
|
||||||
|
|
||||||
|
# Docker database
|
||||||
|
docker-db-shell:
|
||||||
|
docker-compose exec postgres psql -U postgres -d booking_system
|
||||||
|
|
||||||
|
docker-db-backup:
|
||||||
|
docker-compose exec postgres pg_dump -U postgres booking_system > backup_$$(date +%Y%m%d_%H%M%S).sql
|
||||||
|
|
||||||
|
docker-db-restore:
|
||||||
|
@read -p "Enter backup file path: " file; \
|
||||||
|
docker-compose exec -T postgres psql -U postgres booking_system < $$file
|
||||||
|
|
||||||
|
# Docker testing
|
||||||
|
docker-test:
|
||||||
|
docker-compose exec api go test ./...
|
||||||
|
|
||||||
|
docker-test-coverage:
|
||||||
|
docker-compose exec api go test -cover ./...
|
||||||
|
|
||||||
|
# Docker utilities
|
||||||
|
docker-shell:
|
||||||
|
docker-compose exec api /bin/sh
|
||||||
|
|
||||||
|
docker-rebuild:
|
||||||
|
docker-compose up -d --build api
|
||||||
|
|
||||||
|
docker-health:
|
||||||
|
@echo "API Health:"; curl -s http://localhost:8080/health | jq .
|
||||||
|
@echo "\nDatabase Health:"; docker-compose exec postgres pg_isready -U postgres
|
||||||
@ -39,7 +39,7 @@ func NewEmailTemplateService() *EmailTemplateService {
|
|||||||
templates: make(map[models.NotificationType]*template.Template),
|
templates: make(map[models.NotificationType]*template.Template),
|
||||||
baseData: TemplateData{
|
baseData: TemplateData{
|
||||||
CompanyName: "Attune Heart Therapy",
|
CompanyName: "Attune Heart Therapy",
|
||||||
SupportEmail: "support@attuneheart.com",
|
SupportEmail: "hello@attunehearttherapy.com",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user