|
1 | | -# Rails environment |
| 1 | +# ── Image versions ──────────────────────────────────────────────────────────── |
| 2 | +#IMAGE_VERSION=latest |
| 3 | +#REDIS_IMAGE_VERSION=7-alpine |
| 4 | + |
| 5 | +# ── Rails ───────────────────────────────────────────────────────────────────── |
2 | 6 | RAILS_ENV=production |
| 7 | +RAILS_LOG_TO_STDOUT=true |
| 8 | +RAILS_SERVE_STATIC_FILES=true |
| 9 | +RAILS_MAX_THREADS=5 |
| 10 | + |
| 11 | +# Generate with: openssl rand -hex 64 |
3 | 12 | SECRET_KEY_BASE= |
4 | 13 |
|
5 | | -# Database (connects via postgres-net) |
6 | | -DATABASE_URL=postgresql://member_manager:password@postgresql:5432/member_manager_production |
| 14 | +# ── Database (connects via postgres-net) ────────────────────────────────────── |
| 15 | +DATABASE_USER=member-manager_user |
| 16 | +DATABASE_PASSWORD= |
| 17 | +DATABASE_NAME=member-manager_db |
| 18 | +DATABASE_HOST=postgresql |
| 19 | +DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME} |
7 | 20 |
|
8 | | -# Redis (internal member-manager-redis container) |
| 21 | +# Used by db-backup to back up this service's database |
| 22 | +BACKUP_DATABASE_URLS=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME} |
| 23 | + |
| 24 | +# ── Redis (internal member-manager-redis container) ─────────────────────────── |
9 | 25 | REDIS_URL=redis://member-manager-redis:6379/0 |
10 | 26 |
|
11 | | -# Outbound email via postfix (connects via postfix-net) |
12 | | -SMTP_HOST=postfix |
13 | | -SMTP_PORT=587 |
14 | | -SMTP_FROM=noreply@example.com |
| 27 | +# ── Authentication (Authentik) ──────────────────────────────────────────────── |
| 28 | +# UUID of the Authentik group that grants membership access |
| 29 | +AUTHENTIK_GROUP_ID= |
15 | 30 |
|
16 | | -# Application URL |
17 | | -APP_HOST=member-manager.example.com |
| 31 | +# Local auth fallback (for development/emergency use only) |
| 32 | +#LOCAL_AUTH_ENABLED=true |
| 33 | +#LOCAL_AUTH_EMAIL=admin@example.com |
| 34 | +#LOCAL_AUTH_PASSWORD= |
| 35 | +#LOCAL_AUTH_FULL_NAME= |
18 | 36 |
|
19 | | -# Image versions (optional, defaults shown) |
20 | | -#IMAGE_VERSION=latest |
21 | | -#REDIS_IMAGE_VERSION=7-alpine |
| 37 | +# ── Outbound email (connects via postfix-net) ───────────────────────────────── |
| 38 | +SMTP_ADDRESS=postfix |
| 39 | +SMTP_PORT=25 |
| 40 | +SMTP_DOMAIN=pdxhackerspace.org |
| 41 | +SMTP_USERNAME= |
| 42 | +SMTP_PASSWORD= |
| 43 | +SMTP_AUTHENTICATION=plain |
| 44 | +SMTP_ENABLE_STARTTLS=false |
| 45 | +EMAIL_FROM_ADDRESS=info@pdxhackerspace.org |
| 46 | +#EMAIL_SUPPORT_ADDRESS= |
| 47 | + |
| 48 | +# ── Slack ───────────────────────────────────────────────────────────────────── |
| 49 | +# Bot/user OAuth token (xoxp-... or xoxb-...) |
| 50 | +SLACK_API_TOKEN= |
| 51 | + |
| 52 | +# ── Google Sheets integration ───────────────────────────────────────────────── |
| 53 | +GOOGLE_SHEETS_ID= |
| 54 | +# Paste the full service account credentials JSON as a single-line string |
| 55 | +GOOGLE_SHEETS_CREDENTIALS= |
| 56 | + |
| 57 | +# ── PayPal ──────────────────────────────────────────────────────────────────── |
| 58 | +PAYPAL_CLIENT_ID= |
| 59 | +PAYPAL_CLIENT_SECRET= |
| 60 | +PAYPAL_API_BASE_URL=https://api-m.paypal.com |
| 61 | +#PAYPAL_API_BASE_URL=https://api-m.sandbox.paypal.com |
| 62 | +PAYPAL_TRANSACTIONS_LOOKBACK_DAYS=1095 |
| 63 | +#PAYPAL_TRANSACTIONS_LOOKBACK_DAYS=31 |
| 64 | + |
| 65 | +# ── ReCharge ────────────────────────────────────────────────────────────────── |
| 66 | +RECHARGE_API_KEY= |
| 67 | +RECHARGE_API_BASE_URL=https://api.rechargeapps.com |
| 68 | +RECHARGE_TRANSACTIONS_LOOKBACK_DAYS=3650 |
| 69 | + |
| 70 | +# ── Access control ──────────────────────────────────────────────────────────── |
| 71 | +RFID_WEBHOOK_IP_WHITELIST=192.168.0.0/16 |
| 72 | +ACCESS_LOGS_DIRECTORY=/tmp/access |
| 73 | +SYSLOG_SERVER=192.168.13.2 |
| 74 | +SYSLOG_PORT=514 |
| 75 | + |
| 76 | +# ── Application ─────────────────────────────────────────────────────────────── |
| 77 | +MEMBER_MANAGER_BASE_URL=https://members.pdxhackerspace.org |
| 78 | +ORGANIZATION_NAME=PDX Hackerspace |
| 79 | +TZ=America/Los_Angeles |
| 80 | +TIMEZONE=America/Los_Angeles |
0 commit comments