Skip to content

Commit

Permalink
fix env file
Browse files Browse the repository at this point in the history
apparently, .env requires special syntax...
  • Loading branch information
ltalirz authored and hjhsalo committed Oct 20, 2020
1 parent 06ca23e commit 9769c2d
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions b2share.env
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
# B2SHARE evironment variables
export B2ACCESS_CONSUMER_KEY=myb2share # the username used for registration
export B2ACCESS_SECRET_KEY=b2a-secretkey # the secret used for registration (not needed on test server)

export B2SHARE_SECRET_KEY=secretkey # a secret string used for encrypting user sessions
export B2SHARE_JSONSCHEMAS_HOST=localhost:5000 # replace <FQDN> with the domain of the B2SHARE server
export B2SHARE_POSTGRESQL_USER=b2share # username used by b2share when accessing the postgresql database (default=b2share)
export B2SHARE_POSTGRESQL_DBNAME=b2sharedb # name of the postgresql database used by b2share
export B2SHARE_POSTGRESQL_PASSWORD=dbpasswd # password used by b2share when accessing the postgresql database
export B2SHARE_RABBITMQ_USER=b2share # username used by b2share when accessing RabbitMQ service
export B2SHARE_RABBITMQ_PASS=rmqpasswd # password used by b2share when accessing RabbitMQ service
export B2SHARE_DATADIR='./data-dir' # path on the host which will be mounted and contain all b2share related data,
# including postgresql, elasticsearch, redis, rabbitmq, nginx and b2share itself.
# the username used for registration
B2ACCESS_CONSUMER_KEY=myb2share
# the secret used for registration (not needed on test server)
B2ACCESS_SECRET_KEY=b2a-secretkey

## optional environment variables
export USE_STAGING_B2ACCESS=1 # run in staging (testing) mode (unity install)
export INIT_DB_AND_INDEX=1 # when run the first time, initialize the database and indices
export LOAD_DEMO_COMMUNITIES_AND_RECORDS=1 # when run the first time, load some communities and records for demonstration
# a secret string used for encrypting user sessions
B2SHARE_SECRET_KEY=secretkey
B2SHARE_JSONSCHEMAS_HOST=localhost:5000
# username used by b2share when accessing the postgresql database (default=b2share)
B2SHARE_POSTGRESQL_USER=b2share
# name of the postgresql database used by b2share
B2SHARE_POSTGRESQL_DBNAME=b2sharedb
# password used by b2share when accessing the postgresql database
B2SHARE_POSTGRESQL_PASSWORD=dbpasswd
# username used by b2share when accessing RabbitMQ service
B2SHARE_RABBITMQ_USER=b2share
# password used by b2share when accessing RabbitMQ service path on the host
# which will be mounted and contain all b2share related data,
B2SHARE_RABBITMQ_PASS=rmqpasswd
# path on the host which will be mounted and contain all b2share related data,
# including postgresql, elasticsearch, redis, rabbitmq, nginx and b2share
# itself.
B2SHARE_DATADIR=./data


###### optional environment variables #####

# run in staging (testing) mode (unity install)
USE_STAGING_B2ACCESS=1
# when run the first time, initialize the database and indices
INIT_DB_AND_INDEX=1
# when run the first time, load some communities and records for demonstration
LOAD_DEMO_COMMUNITIES_AND_RECORDS=1

0 comments on commit 9769c2d

Please sign in to comment.