-
Notifications
You must be signed in to change notification settings - Fork 15
/
env.example
106 lines (80 loc) · 4.02 KB
/
env.example
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
# Copy this to "env" and fill in your secrets and customization:
#
# cp env.example env
# ${EDITOR} env
# Universal settings ###############################################################################
# You'll need to set these whatever you're doing.
# The content service's administrative API Key. Used for write actions.
# Set this to something arbitrary and "random". While you're running locally it doesn't need to
# be anything particularly difficult.
export ADMIN_APIKEY=
# Set this to the domain name of the site you're interested in.
export PRESENTED_URL_DOMAIN=deconst.horse
# Determine the storage backend.
# Use "memory" for in memory storage or "remote" for Cloud Files storage
export STORAGE=memory
# Control repository settings ######################################################################
# Customize the control repository used by your local Deconst instance.
# To preview local changes to a control repository:
# Set this to a path to a control repository on your local machine to preview local changes to a
# control repository.
unset CONTROL_REPO_HOST_PATH
export CONTROL_REPO_HOST_PATH=
# To use a control repository from a remote git repository:
# Set these to a valid git URL and branch.
# export CONTROL_REPO_URL=https://github.com/deconst/deconst-docs-control.git
# export CONTROL_REPO_BRANCH=master
export CONTROL_REPO_URL=
export CONTROL_REPO_BRANCH=
# A task to be run in the control repo's directory to build/upload assets
export CONTROL_REPO_ASSETS_TASK="grunt build"
# Storage settings #################################################################################
# Control where Deconst stores assets.
# These only need to be set if you've changed STORAGE to "remote" in the Universal settings.
# Rackspace credentials.
# These are only used for Cloud Files and are only necessary if STORAGE is set to "remote".
export RACKSPACE_USERNAME=
export RACKSPACE_APIKEY=
export RACKSPACE_REGION=
# Set this to something different to keep content separated in different Cloud Files containers.
# Deconst uses two: one for CDN assets and one for metadata envelopes.
export CONTAINER_NAME=integrated
export CONTENT_CONTAINER=deconst-${CONTAINER_NAME}-content
export ASSET_CONTAINER=deconst-${CONTAINER_NAME}-asset
# Template settings ################################################################################
# These settings only do anything if the templates in the control repository you're using read them.
# "true" or "false", whether the presenter should load assets directly from the control repo, or
# via the assets container
export PRESENTER_DEVMODE=
# "true" or "false", whether the presenter should inject a Livereload script in
# the body. Doesn't do anything unless your templates watch this variable.
export PRESENTER_LIVERELOAD=
# Internal stuff ###################################################################################
# Bash munging to simplify some of the settings above and derive related variables. You shouldn't
# need to edit anything here unless you're debugging this repo.
# Derive the container-internal CONTROL_REPO_PATH from the other CONTROL_REPO_* variables.
if [ -n "${CONTROL_REPO_HOST_PATH}" ]; then
if [ -n "${CONTROL_REPO_URL}" ]; then
unset CONTROL_REPO_URL
unset CONTROL_REPO_BRANCH
echo "Ignoring CONTROL_REPO_URL in favor of CONTROL_REPO_HOST_PATH." >&2
fi
export CONTROL_REPO_PATH="${CONTROL_REPO_HOST_PATH}"
else
export CONTROL_REPO_HOST_PATH=$(pwd)
export CONTROL_REPO_PATH=/tmp/control-repo
fi
# Set MEMORY_ASSET_PREFIX appropriately depending on whether you're using docker-machine or the
# Docker for (Mac|Windows) betas.
if [ -z "${DOCKER_HOST:-}" ]; then
# Defaulting to the local Docker socket.
# Use localhost.
export DECONST_PUBLIC=localhost
else
# Yank it from DOCKER_HOST.
# This should work from docker-machine and Carina.
export DECONST_PUBLIC=${DOCKER_HOST#tcp://}
DECONST_PUBLIC=${DECONST_PUBLIC%:[0-9]*}
fi
export MEMORY_ASSET_PREFIX=http://${DECONST_PUBLIC}:9000/assets/
export STAGING_MEMORY_ASSET_PREFIX=http://${DECONST_PUBLIC}:9001/assets/