makedrive/env.dist

119 строки
3.7 KiB
Plaintext

# Copy this file to .env or just set these environment variables.
# development or production
export NODE_ENV="development"
# default makedrive port is 9090
export PORT=9090
# How many parallel cluster instances of server to run (default=1)
export FORKS=1
# Allowed CORS domains
# Add domains that we allow (e.g., for /api/sync route)
export ALLOWED_CORS_DOMAINS='["http://localhost:8003", "http://localhost:5001"]'
# Optional Basic Auth username:password pair(s) for the /api/get route.
# To set a username `foo` and password `bar`, use "foo:bar". If this is not
# set, the /api/get route will not be enabled.
export BASIC_AUTH_USERS=
# Log level, options are: fatal, error, warn, info, debug, trace.
# Use debug for useful debug info, or error if you only want to see exception/crash stacks.
export LOG_LEVEL="info"
# Various optional HTTP routes for getting data out of MakeDrive. Set to false to turn off.
# /p/path/into/filesystem -> serves path like Apache would
export ENABLE_PATH_ROUTE=true
# /j/path/into/filesystem -> serves path as JSON for API consumption
export ENABLE_JSON_ROUTE=true
# /z/path/into/filesystem -> serves path as .zip file for export
export ENABLE_ZIP_ROUTE=true
# /image -> serves image gallery from user's filesystem
export IMAGES_ROUTE=true
# AWS-S3 information
export S3_BUCKET="org.webmadecontent.staging.makedrive"
export S3_KEY=
export S3_SECRET=
# Redis - client and sync state is shared across nodes using Redis.
# The REDIS_URL should be a single IP or hostname (not a list).
# You can also provide a port and password, for example:
#
# http://<username>:<password>@some-redis-server.com:<port>
#
# If no URL is given, localhost is assumed.
export REDIS_URL=
# This value is only used for localhost testing with emulated S3
export MOX_PORT=12319
export S3_DOMAIN="http://localhost:12319"
export S3_EMULATION=false
export DB_TYPE="MYSQL"
export DB_NAME="makedrive"
export DB_USERNAME=""
export DB_PASSWORD=""
export DB_CONNECTION_URL=""
export ENABLE_GELF_LOGS=false
# What is our fully qualified login API access point?
export LOGINAPI="http://testuser:password@localhost:3000"
# Where can we find the login API endpoint
export LOGIN="http://localhost:3000"
# Toggle between cookie based or query string based authentication handling
export ALLOW_QUERY_STRING_API_SYNC=""
# And a cookie secret
export SESSION_SECRET="dummy secret value"
# Key namespace
export COOKIE_KEY="webmakerlogin"
# A domain for webmaker super cookies
# You should only set this when running in a non-localhost environment
export COOKIE_DOMAIN=""
# Is this server running behind an SSL-enabled load-balancer?
export FORCE_SSL=false
# Which provider module will you use with Filer?
# NOTE: You must include this provider in package.json or manually require it.
export FILER_PROVIDER="filer-fs"
# Which provider module will you use with Passportjs?
# Please see README for list of available providers.
export AUTHENTICATION_PROVIDER="passport-zeroconfig"
# Time-to-live for Websocket tokens
# (Default to 60 seconds)
export TOKEN_TIMEOUT_MS=60000
# Maximum time a client can go in a sync without contacting the server
# (Default to 5 seconds)
export CLIENT_TIMEOUT_MS=5000
###
# Dev config
###
# GIT protocol URI for the master Mozilla repo
# (Default to "git@github.com:mozilla/makedrive.git")
export MAKEDRIVE_UPSTREAM_URI="git@github.com:mozilla/makedrive.git"
# Local remote name for the master Mozilla repo
# (Default to "upstream")
export MAKEDRIVE_UPSTREAM_NAME="upstream"
# Upstream branch to ovewrite on a grunt release command
# (Default to "master")
export MAKEDRIVE_UPSTREAM_BRANCH="master"
# Maximum file size allow to sync.
# (Default to unlimited if not set)
export MAX_SYNC_SIZE_BYTES=