2020-12-20 14:22:36 +01:00
|
|
|
# Sample ENV setup Variables
|
|
|
|
# Copy this file and update as needed.
|
|
|
|
#
|
|
|
|
# $ cp .env.sample .env
|
|
|
|
#
|
|
|
|
# Do not include this new file in source control
|
|
|
|
#
|
2020-01-18 10:28:47 +01:00
|
|
|
|
|
|
|
# Rails Settings
|
|
|
|
EXPOSED_PORT=3000
|
2020-12-20 00:27:44 +01:00
|
|
|
# change this to "production" for production use, otherwise the access token time is very short and forces re-login
|
2020-01-18 10:28:47 +01:00
|
|
|
RAILS_ENV=development
|
2020-12-20 00:27:44 +01:00
|
|
|
RAILS_LOG_TO_STDOUT=false
|
2021-03-06 21:39:49 +01:00
|
|
|
# Log Level options: "INFO" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"
|
|
|
|
RAILS_LOG_LEVEL=INFO
|
2020-12-20 00:27:44 +01:00
|
|
|
#SQS_QUEUE=somequeue
|
|
|
|
#SQS_QUEUE_LOW_PRIORITY=low_priority_queue
|
|
|
|
#AWS_REGION=us-west1
|
|
|
|
#S3_BACKUP_BUCKET_NAME=
|
|
|
|
|
2020-12-20 14:22:36 +01:00
|
|
|
ACTIVE_JOB_QUEUE_ADAPTER=async
|
2020-01-18 10:28:47 +01:00
|
|
|
|
|
|
|
# Database Settings
|
|
|
|
DB_PORT=3306
|
|
|
|
DB_HOST=127.0.0.1
|
|
|
|
DB_DATABASE=standard_notes_db
|
|
|
|
DB_USERNAME=std_notes_user
|
2020-12-20 14:22:36 +01:00
|
|
|
# Please change this!
|
2020-01-18 10:28:47 +01:00
|
|
|
DB_PASSWORD=changeme123
|
2020-12-20 00:27:44 +01:00
|
|
|
DB_POOL_SIZE=30
|
|
|
|
DB_WAIT_TIMEOUT=180
|
|
|
|
|
|
|
|
# Secrets
|
|
|
|
# Use: "bundle exec rake secret" or "openssl rand -hex 64"
|
|
|
|
# To generate required secret key base below
|
|
|
|
|
|
|
|
SECRET_KEY_BASE=changeme123
|
|
|
|
PSEUDO_KEY_PARAMS_KEY=changeme456
|
|
|
|
|
|
|
|
# Disable user registration
|
|
|
|
#DISABLE_USER_REGISTRATION=true
|
|
|
|
|
|
|
|
# Datadog
|
|
|
|
DATADOG_ENABLED=false
|
|
|
|
|
|
|
|
# Mailer settings
|
|
|
|
SMTP_HOST=
|
|
|
|
SMTP_PORT=
|
2021-02-06 20:01:03 +01:00
|
|
|
#SMTP_USERNAME=
|
|
|
|
#SMTP_PASSWORD=
|
2020-12-20 00:27:44 +01:00
|
|
|
SMTP_DOMAIN=
|
2021-02-06 20:01:03 +01:00
|
|
|
# Enalbe STARTTLS
|
|
|
|
# Empty is disabled
|
|
|
|
# Any value is enabled
|
|
|
|
SMTP_STARTTLS=
|
2020-12-20 00:27:44 +01:00
|
|
|
EMAIL_ATTACHMENT_MAX_SIZE=10485760
|
|
|
|
|
|
|
|
# SNS EVENTS
|
|
|
|
#SNS_TOPIC_ARN=
|
|
|
|
|
|
|
|
# (Optional) Database Replication
|
|
|
|
#DB_REPLICA_HOST=
|
|
|
|
|
|
|
|
# Revisions persistency
|
|
|
|
REVISIONS_FREQUENCY=300
|
2020-12-27 23:18:55 +01:00
|
|
|
|
2021-03-06 21:39:49 +01:00
|
|
|
# (Optional) Redis Cache for ephemeral sessions
|
|
|
|
REDIS_URL=redis://cache:6379
|
|
|
|
|
|
|
|
# (Optional) Change URLs to Internal DNS
|
|
|
|
#INTERNAL_DNS_REROUTE_ENABLED=false
|
|
|
|
|
|
|
|
# (Optional) Auth Proxy JWT Secret
|
|
|
|
#AUTH_JWT_SECRET=changeme123
|
|
|
|
|
|
|
|
# (Optional) User Management Server - registration emails, subscriptions etc.
|
|
|
|
#USER_MANAGEMENT_SERVER=
|
|
|
|
|
2020-12-27 23:18:55 +01:00
|
|
|
# Sub-URI
|
|
|
|
RAILS_RELATIVE_URL_ROOT=/
|
2021-01-08 19:44:37 +01:00
|
|
|
|
2021-01-14 20:32:33 +01:00
|
|
|
# Public file server
|
|
|
|
# Empty is disabled
|
|
|
|
# Any value is enabled
|
2021-01-11 22:23:08 +01:00
|
|
|
RAILS_SERVE_STATIC_FILES=
|