Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deleted .env file and added a new sample.env file #49

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .env

This file was deleted.

4 changes: 3 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ tasks:
init: |
gp sync-done dev-setup
bash install-central.sh
- name: generate env file
command: cp sample.env .env
- name: Start Services
openMode: tab-after
init: |
gp sync-done dev-setup
# Not needed now, we can use docker-compose networking.. but one can use this in a script to repalce env vars at runtime in .env
# Not needed now, we can use docker-compose networking.. but one can use this in a script to replace env vars at runtime in .env
# sed -i~ "/^FORM_MANAGER_URL=/s/=.*/=https\:\/\/3006-${GITPOD_WORKSPACE_URL:8}/" .env
sed -i~ "/^MINIO_URL=/s/=.*/=https\:\/\/9000-${GITPOD_WORKSPACE_URL:8}/" .env
# sed -i~ "/^MINIO_ENDPOINT=/s/=.*/=9000-${GITPOD_WORKSPACE_URL:8}/" .env
Expand Down
46 changes: 46 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
POSTGRES_USER=28f448d6b93682a5506057d00d8e2a4a
POSTGRES_PASSWORD=4a59d9a4f8b26b1a37b1307522dbee13
DATABASE_USERNAME=e3adcb5f0ea9f9fabeef700dd1829062
DATABASE_PASSWORD=adbbd84663d621d2c61a83511afbd586
ES_JAVA_OPTS=b057fb1de7f0c4bfa9e3a47bfc5dddef
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the memory configuration for JVM

FUSIONAUTH_APP_MEMORY=e71241e3fd129482f17b65bcb1b0f7de

#minio
MINIO_USERNAME=7f1db5d6334a96d5081c727ed2da6d03
MINIO_PASSWORD=18c85b04e71af95de84748e10d8d6d03
MINIO_BUCKETNAME=e8835e98375209168c08e2dc32df364e

# central envs
CENTRAL_USER_EMAIL=3d204f11c916fb6e167f2e6f172c4629
CENTRAL_USER_PASS=7089838567ab798fdff495d6291c4d1c

#enketo-express
ENCRYPTION_KEY=fefb6f0e8c0db0baea77bfd18b871cfe
LESS_SECURE_ENCRYPTION_KEY=ssssomestrongencrytionkey
FORM_MANAGER_BASE_URI=337171cf623c9a6250b1304b6771fe5e

# form manager
FORM_MANAGER_URL=83627096dfc8e466f5431f35ecc91872
MINIO_URL=725ca1bfe02f4aae2e5ebb72855337d4
MINIO_ENDPOINT=42db748e6c2d0d957e23c39b7a74118c
MINIO_PORT=9000
REDIS_HOST=c7c2496d8b558ea659e674c57668f40f
MINIO_USE_SSL=f3b8a3eb9cf0668f84bfdb024151879b
REDIS_PORT=e8c8bc8523b3a9a67a9768d01f636a0e

# TSDB
TSDB_POSTGRES_USER=bb6baf9253ebce19ce0f69197d4ce5t5
TSDB_POSTGRES_PASSWORD=8bfe2ce98ba66be0093b9a5ca607cfc5

# GQL
HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey
HASURA_GRAPHQL_JWT_SECRET=529845d36519367203a8bbf5a0942ef4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JWT Secret is a URL to .well-known of FusionAuth

HASURA_GRAPHQL_DATABASE_URL=43034095d6066ab71c39d69d5b665d6a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Databse URL is not supposed to be a random string.


#react wrapper
# http://service-name is not going to work as we are building a static build
# and serving it through nginx
# use actual IP address instead
REACT_APP_ENKETO_URL=8f0e9922895e7a99d644fbe19be3841b
REACT_APP_FORM_MANAGER_URL=bcbb6baf9253ebce19ce0f69197d4ce5
REACT_APP_HASURA_URL=91562e3d81f918b1c90d4ca3fb5a89e3