feat: Add initial production deployment support
- Add .env.example file for environment variable setup - Add .gitignore to manage sensitive files and directories - Add Dockerfile.prod for production-ready Docker image - Add PRODUCTION_CHECKLIST.md for pre/post deployment steps - Add PRODUCTION_DEPLOYMENT.md for deployment instructions - Add STRIPE_SETUP.md for Stripe payment configuration - Add config/default.toml for default configuration settings - Add config/local.toml.example for local configuration template
This commit is contained in:
17
actix_mvc_app/config/default.toml
Normal file
17
actix_mvc_app/config/default.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
# Default configuration for the application
|
||||
# This file contains safe defaults and test keys
|
||||
|
||||
[server]
|
||||
host = "127.0.0.1"
|
||||
port = 9999
|
||||
# workers = 4 # Uncomment to set specific number of workers
|
||||
|
||||
[templates]
|
||||
dir = "./src/views"
|
||||
|
||||
[stripe]
|
||||
# Stripe Test Keys (Safe for development)
|
||||
# These are test keys from Stripe's documentation - they don't process real payments
|
||||
publishable_key = "pk_test_51RdWkUC6v6GB0mBYmMbmKyXQfeRX0obM0V5rQCFGT35A1EP8WQJ5xw2vuWurqeGjdwaxls0B8mqdYpGSHcOlYOtQ000BvLkKCq"
|
||||
secret_key = "sk_test_51RdWkUC6v6GB0mBYbbs4RULaNRq9CzqV88pM1EMU9dJ9TAj8obLAFsvfGWPq4Ed8nL36kbE7vK2oHvAQ35UrlJm100FlecQxmN"
|
||||
# webhook_secret = "whsec_test_..." # Uncomment and set when setting up webhooks
|
18
actix_mvc_app/config/local.toml.example
Normal file
18
actix_mvc_app/config/local.toml.example
Normal file
@@ -0,0 +1,18 @@
|
||||
# Local configuration template
|
||||
# Copy this file to 'local.toml' and customize with your own keys
|
||||
# This file should NOT be committed to version control
|
||||
|
||||
[server]
|
||||
# host = "0.0.0.0" # Uncomment to bind to all interfaces
|
||||
# port = 8080 # Uncomment to use different port
|
||||
|
||||
[stripe]
|
||||
# Replace with your own Stripe test keys from https://dashboard.stripe.com/test/apikeys
|
||||
# publishable_key = "pk_test_YOUR_PUBLISHABLE_KEY_HERE"
|
||||
# secret_key = "sk_test_YOUR_SECRET_KEY_HERE"
|
||||
# webhook_secret = "whsec_YOUR_WEBHOOK_SECRET_HERE"
|
||||
|
||||
# For production, use live keys:
|
||||
# publishable_key = "pk_live_YOUR_LIVE_PUBLISHABLE_KEY"
|
||||
# secret_key = "sk_live_YOUR_LIVE_SECRET_KEY"
|
||||
# webhook_secret = "whsec_YOUR_LIVE_WEBHOOK_SECRET"
|
Reference in New Issue
Block a user