Skip to content

Instantly share code, notes, and snippets.

@paligiannis
Created July 17, 2018 10:30
Show Gist options
  • Save paligiannis/6139585b72f4802a853ad858d70379af to your computer and use it in GitHub Desktop.
Save paligiannis/6139585b72f4802a853ad858d70379af to your computer and use it in GitHub Desktop.
Docker
# Rename this file to env.sh, it will be kept out of Git.
# So suitable for adding secret keys and such
NODE_ENV="${NODE_ENV:-development}"
DEPLOY_ENV="${DEPLOY_ENV:-production}"
DEBUG="frey:*"
FREY_DOMAIN="localost:3020"
# FREY_ENCRYPTION_SECRET="***"
UPPYSERVER_PORT=3020
UPPY_ENDPOINT="localhost"
# for whitelisting multiple clients
UPPY_ENDPOINTS=""
# inform uppy client about the server host name
# UPPYSERVER_REDIS_URL=""
# UPPYSERVER_DATADIR="/mnt/uppy-server-data"
UPPYSERVER_DOMAIN="localhost"
UPPYSERVER_SELF_ENDPOINT="${UPPYSERVER_DOMAIN}"
# valid server hostnames for oauth handling
UPPYSERVER_DOMAINS="localhost:3020,playground.test/public/uppy/,playground.test,http://localhost:3020/,http://0.0.0.0:3020/"
UPPYSERVER_PATH=""
UPPYSERVER_IMPLICIT_PATH=""
UPPYSERVER_SECRET="mysecret"
UPPYSERVER_PROTOCOL="http"
# single oauth redirect handler for multiple server instances
UPPYSERVER_OAUTH_DOMAIN=""
UPPYSERVER_DROPBOX_KEY="***"
UPPYSERVER_DROPBOX_SECRET="***"
UPPYSERVER_GOOGLE_KEY="521514906299-ev3rvorckrocsgm4lmkmelek0i18cr20.apps.googleusercontent.com"
UPPYSERVER_GOOGLE_SECRET="zXwp1Elc9pLCFmqcvMLgaIdA"
UPPYSERVER_INSTAGRAM_KEY="***"
UPPYSERVER_INSTAGRAM_SECRET="***"
UPPYSERVER_AWS_KEY="***"
UPPYSERVER_AWS_SECRET="***"
UPPYSERVER_AWS_BUCKET="***"
UPPYSERVER_AWS_ENDPOINT="https://s3.{region}.amazonaws.com"
UPPYSERVER_AWS_REGION="***"
UPPYSERVER_UPLOAD_URLS="http://localhost:3020/,https://localhost:3020/"
# source env.sh
# travis encrypt --add env.global "FREY_DOMAIN=${FREY_DOMAIN}"
# travis encrypt --add env.global "FREY_ENCRYPTION_SECRET=${FREY_ENCRYPTION_SECRET}"
# travis encrypt --add env.global "UPPY_ENDPOINT=${UPPY_ENDPOINT}"
# travis encrypt --add env.global "UPPYSERVER_DATADIR=${UPPYSERVER_DATADIR}"
# travis encrypt --add env.global "UPPYSERVER_DOMAIN=${UPPYSERVER_DOMAIN}"
# travis encrypt --add env.global "UPPYSERVER_PROTOCOL=${UPPYSERVER_PROTOCOL}"
# travis encrypt --add env.global "UPPYSERVER_DROPBOX_KEY=${UPPYSERVER_DROPBOX_KEY}"
# travis encrypt --add env.global "UPPYSERVER_DROPBOX_SECRET=${UPPYSERVER_DROPBOX_SECRET}"
# travis encrypt --add env.global "UPPYSERVER_GOOGLE_KEY=${UPPYSERVER_GOOGLE_KEY}"
# travis encrypt --add env.global "UPPYSERVER_GOOGLE_SECRET=${UPPYSERVER_GOOGLE_SECRET}"
# travis encrypt --add env.global "UPPYSERVER_INSTAGRAM_KEY=${UPPYSERVER_INSTAGRAM_KEY}"
# travis encrypt --add env.global "UPPYSERVER_INSTAGRAM_SECRET=${UPPYSERVER_INSTAGRAM_SECRET}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment