Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Dec 7, 2023
1 parent 938911e commit be0a48b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/modules/configure/pages/environment_variables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ We try to let most of the things defined through Environment Variables, as https
|SECRET_KEY_BASE
|Secret key base for the Application. It's specially important that this is kept secret from the outside word; do NOT publish it on GitHub/GitLab/BitBucket.

|IAT_EXPIRATION_MINUTES
|Expiration time for the JWT tokens, in minutes. Defaults to 60 minutes.

|HOURS_BEFORE_CREATE_ELECTION
|Number of hours before the election starts that the election can be created. Defaults to 1 hour.

|SEED
|Used to force seed test data on production environments, if `true`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ We divide the test phase in 4 steps:
Make sure you set the `SANDBOX` environment variable to any value to activate it;
* The web server and the background worker server shall run in separate machines in order for web traffic and background jobs not to affect each other;
* Use Sidekiq as queue adapter;
* In `bulletin_board/server/config/settings.yml`, set `iat_expiration_minutes` to few hours/days.
* In `bulletin_board/server/config/settings.yml`, set `iat_expiration_minutes` to few hours/days (or use the ENV variable `IAT_EXPIRATION_MINUTES`).
This is the amount of time a vote is considered valid from its emission - since the vote generation phase could take a few hours, you don't want it to be too low and have the Bulletin Board to reject the votes when you start the load test.

[#generate-votes]
Expand Down

0 comments on commit be0a48b

Please sign in to comment.