Skip to content

Instantly share code, notes, and snippets.

@fossyy

fossyy/.env Secret

Last active September 8, 2024 10:10
Show Gist options
  • Save fossyy/a15e6806cd33d0ee74611ff410c9d1aa to your computer and use it in GitHub Desktop.
Save fossyy/a15e6806cd33d0ee74611ff410c9d1aa to your computer and use it in GitHub Desktop.
# Server configuration
# Hostname or IP address where the server will listen for incoming requests
SERVER_HOST=localhost
# Port number on which the server will listen for incoming connections
SERVER_PORT=8000
# Domain configuration
# Domain name associated with the server, used when sending emails to users
DOMAIN=filekeeper.fossy.my.id
# Cross-Origin Resource Sharing (CORS) configuration
# Protocol allowed for CORS (HTTP/HTTPS)
CORS_PROTO=https
# Allowed origins for CORS requests. Separate domains with comma
CORS_LIST=filekeeper.fossy.my.id:443,fossy.my.id:443
# HTTP methods allowed for CORS requests
CORS_METHODS=POST,GET
# Database configuration
# Hostname or IP address of the database server
DB_HOST=localhost
# Port number on which the database server is listening
DB_PORT=3306
# Username used to authenticate with the database server
DB_USERNAME=root
# Password used to authenticate with the database server
DB_PASSWORD=test123
# Name of the database to connect to
DB_NAME=filekeeper
# Redis configuration
# Hostname or IP address of the Redis server
REDIS_HOST=localhost
# Port number on which the Redis server is listening
REDIS_PORT=6379
# Password used to authenticate with the Redis server (if required)
REDIS_PASSWORD=test123
# SMTP configuration (for sending emails)
# Domain or IP address of the SMTP server
SMTP_HOST=mail.example.com
# Port number used for SMTP communication
SMTP_PORT=25
# Username used to authenticate with the SMTP server
SMTP_USER=no-reply@example.com
# Password used to authenticate with the SMTP server
SMTP_PASSWORD=VerySecretPassword
# Google OAuth configuration
# Client ID provided by Google OAuth for authenticating the application
GOOGLE_CLIENT_ID=
# Client Secret provided by Google OAuth for authenticating the application
GOOGLE_CLIENT_SECRET=
# Callback URL where Google OAuth will redirect after authentication
GOOGLE_CALLBACK=http://localhost:8000/auth/google/callback
# Session configuration
# Name of the session cookie
SESSION_NAME=Session
# Maximum age of the session cookie in seconds (one week: 60*60*24*7 = 604800 seconds)
SESSION_MAX_AGE=604800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment