feat: add root configuration files for mono-repo setup
Add environment template, git ignore rules, and Go workspace configuration to support mono-repo development workflow. - .env.example: Environment variables template for all services - .gitignore: Git ignore rules for Go, Docker, Terraform, Ansible - go.work: Go workspace file for multi-module support 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
76
.env.example
Normal file
76
.env.example
Normal file
@@ -0,0 +1,76 @@
|
||||
# Environment Variables Template
|
||||
# Copy this file to .env and fill in actual values
|
||||
|
||||
# Application
|
||||
APP_NAME=YDN
|
||||
APP_ENV=development
|
||||
APP_PORT=8080
|
||||
|
||||
# Database (PostgreSQL)
|
||||
POSTGRES_HOST=postgres
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DB=ydn
|
||||
POSTGRES_USER=ydn_user
|
||||
POSTGRES_PASSWORD=changeme
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# Dolibarr (MySQL)
|
||||
DOLIBARR_DB_HOST=mysql
|
||||
DOLIBARR_DB_PORT=3306
|
||||
DOLIBARR_DB=dolibarr
|
||||
DOLIBARR_USER=dolibarr_user
|
||||
DOLIBARR_PASSWORD=changeme
|
||||
DOLIBARR_API_TOKEN=changeme
|
||||
|
||||
# Stripe
|
||||
STRIPE_PUBLISHABLE_KEY=pk_test_...
|
||||
STRIPE_SECRET_KEY=sk_test_...
|
||||
STRIPE_WEBHOOK_SECRET=whsec_...
|
||||
|
||||
# OVH
|
||||
OVH_ENDPOINT=ovh-eu
|
||||
OVH_APPLICATION_KEY=changeme
|
||||
OVH_APPLICATION_SECRET=changeme
|
||||
OVH_CONSUMER_KEY=changeme
|
||||
|
||||
# Email (SMTP)
|
||||
SMTP_HOST=smtp.mailgun.org
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=changeme
|
||||
SMTP_PASSWORD=changeme
|
||||
|
||||
# JWT
|
||||
JWT_SECRET=changeme
|
||||
JWT_EXPIRATION=24h
|
||||
|
||||
# Infrastructure
|
||||
TERRAFORM_BACKEND=local
|
||||
ANSIBLE_VAULT_PASSWORD=changeme
|
||||
|
||||
# Grav CMS
|
||||
GRAV_ADMIN_USER=admin
|
||||
GRAV_ADMIN_PASSWORD=changeme
|
||||
GRAV_ADMIN_EMAIL=admin@example.com
|
||||
|
||||
# Terraform Providers
|
||||
TERRAFORM_PROVIDER_LOCAL=libvirt
|
||||
TERRAFORM_PROVIDER_PROD=ovh
|
||||
|
||||
# Libvirt (Local Testing)
|
||||
LIBVIRT_URI=qemu:///system
|
||||
|
||||
# OVH (Production)
|
||||
OVH_PROJECT_ID=changeme
|
||||
OVH_SSH_KEY_NAME=ydn-deploy
|
||||
|
||||
# Monitoring
|
||||
ENABLE_METRICS=true
|
||||
METRICS_PORT=9090
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL=info
|
||||
LOG_FORMAT=json
|
||||
76
.gitignore
vendored
Normal file
76
.gitignore
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
# Binaries
|
||||
bin/
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Go workspace
|
||||
go.sum
|
||||
*.test
|
||||
*.out
|
||||
|
||||
# Environment
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Logs
|
||||
logs/
|
||||
*.log
|
||||
|
||||
# Temporary files
|
||||
tmp/
|
||||
temp/
|
||||
*.tmp
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# Terraform
|
||||
infrastructure/terraform/**/.terraform/
|
||||
infrastructure/terraform/**/.terraform.lock.hcl
|
||||
infrastructure/terraform/**/terraform.tfstate
|
||||
infrastructure/terraform/**/terraform.tfstate.*
|
||||
infrastructure/terraform/**/crash.log
|
||||
infrastructure/terraform/**/override.tf
|
||||
infrastructure/terraform/**/override.tf.json
|
||||
|
||||
# Ansible
|
||||
infrastructure/ansible/**/retry
|
||||
infrastructure/ansible/**/.*.swp
|
||||
infrastructure/ansible/**/*.retry
|
||||
|
||||
# Docker
|
||||
docker/docker-compose.override.yml
|
||||
|
||||
# Grav CMS
|
||||
web/grav/cache/
|
||||
web/grav/logs/
|
||||
web/grav/tmp/
|
||||
web/grav/images/
|
||||
web/grav/user/accounts/
|
||||
web/grav/user/config/site.yaml.local
|
||||
|
||||
# Node modules (if any)
|
||||
node_modules/
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Backups
|
||||
backups/
|
||||
*.backup
|
||||
*.bak
|
||||
|
||||
# Secrets
|
||||
*.key
|
||||
*.pem
|
||||
*.crt
|
||||
secrets/
|
||||
Reference in New Issue
Block a user