This repository has been archived by the owner on Dec 1, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
env.dist
118 lines (90 loc) · 3.65 KB
/
env.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# 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=