Skip to content

Commit

Permalink
Prepare Dockerfile for K8S
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin committed Feb 8, 2024
1 parent 6fad27d commit 81f6cc7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const {
} = process.env;
module.exports = {
// Host running the iNaturalist Rails app
apiURL: INAT_RAILS_URL ? `${INAT_RAILS_URL}` : "http://localhost:3000",
apiURL: INAT_RAILS_URL ? "${INAT_RAILS_URL}" : "http://localhost:3000",

Check failure on line 17 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

Unexpected template string expression
// Base URL for the current version of *this* app
currentVersionURL: INAT_API_URL ? `${INAT_API_URL}` : "http://localhost:4000/v1",
currentVersionURL: INAT_API_URL ? "${INAT_API_URL}" : "http://localhost:4000/v1",

Check failure on line 19 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

Unexpected template string expression
// Whether the Rails app supports SSL requests. For local dev assume it does not
apiHostSSL: false,
writeHostSSL: false,
elasticsearch: {
host: INAT_ES_HOST ? `http://${INAT_ES_HOST}:9200` : "http://localhost:9200",
host: INAT_ES_HOST ? "http://${INAT_ES_HOST}:9200" : "http://localhost:9200",

Check failure on line 24 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

Unexpected template string expression
geoPointField: "location"
},
database: {
Expand All @@ -43,16 +43,16 @@ module.exports = {
websiteURL: "http://localhost:3000/",
staticImagePrefix: "http://localhost:3000/attachments/",
userImagePrefix: "/attachments/users/icons/",
jwtSecret: "secret",
jwtApplicationSecret: "application_secret",
jwtSecret: INAT_JWT_SECRET ? "${INAT_VISION_URL}" : "secret",

Check failure on line 46 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

'INAT_JWT_SECRET' is not defined

Check failure on line 46 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

Unexpected template string expression
jwtApplicationSecret: INAT_JWT_APPLICATION_SECRET ? "${INAT_VISION_URL}" : "application_secret",

Check failure on line 47 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

'INAT_JWT_APPLICATION_SECRET' is not defined

Check failure on line 47 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

Unexpected template string expression
imageProcesing: {
// Path to a file listing the taxonomy used in the computer vision model
taxaFilePath: "",
// Path to a directory where uploads should be stored. /tmp/ is fine on most
// *nix systems
uploadsDir: "/tmp/",
// Base URL for the web app returning computer vision results
tensorappURL: INAT_VISION_URL ? `${INAT_VISION_URL}` : "http://localhost:6006"
tensorappURL: INAT_VISION_URL ? "${INAT_VISION_URL}" : "http://localhost:6006"

Check failure on line 55 in config_example.js

View workflow job for this annotation

GitHub Actions / build-and-test / Build/Test

Unexpected template string expression
},
redis: {
host: INAT_REDIS_HOST || "127.0.0.1",
Expand Down

0 comments on commit 81f6cc7

Please sign in to comment.