Skip to content

Commit

Permalink
Merge pull request #205 from UN-OCHA/dsr/166-2
Browse files Browse the repository at this point in the history
pushing all env var defaults to Dockerfile
  • Loading branch information
teodorescuserban committed Apr 24, 2019
2 parents cffd47d + b7bc7e4 commit f791e1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM unocha/nodejs:8.11.3

ENV BASIC_AUTH_USER=hi \
ENV CTF_HOST=cdn.contentful.com \
CTF_SPACE_ID=123456 \
CTF_ENVIRONMENT=master \
CTF_CDA_ACCESS_TOKEN=1234567890 \
BASE_URL=http://dev.dsr.local \
BASIC_AUTH_USER=hi \
BASIC_AUTH_PASS=bye

WORKDIR /srv/www
Expand Down
10 changes: 5 additions & 5 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ module.exports = {
// Environment variables
//
env: {
CTF_HOST: process.env.CTF_HOST || 'cdn.contentful.com',
CTF_SPACE_ID: process.env.CTF_SPACE_ID || '123456',
CTF_ENVIRONMENT: process.env.CTF_ENVIRONMENT || 'master',
CTF_CDA_ACCESS_TOKEN: process.env.CTF_CDA_ACCESS_TOKEN || '1234567890',
CTF_HOST: process.env.CTF_HOST,
CTF_SPACE_ID: process.env.CTF_SPACE_ID,
CTF_ENVIRONMENT: process.env.CTF_ENVIRONMENT,
CTF_CDA_ACCESS_TOKEN: process.env.CTF_CDA_ACCESS_TOKEN,
CTF_CDA_PREVIEW_TOKEN: process.env.CTF_CDA_PREVIEW_TOKEN,
baseUrl: process.env.BASE_URL || 'http://dev.dsr.local',
baseUrl: process.env.BASE_URL,
},
//
// Global <head> metadata
Expand Down

0 comments on commit f791e1b

Please sign in to comment.