-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
3,744 additions
and
1,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
Adding Properties | ||
================= | ||
|
||
Add a file called `application.env` under the config directory. | ||
This file should contain properties formatted like this: | ||
|
||
``` | ||
KEY=VALUE | ||
``` | ||
|
||
|
||
Possible Properties | ||
=================== | ||
Listed below are the available properties. | ||
|
||
|
||
Username Properties | ||
------------------- | ||
|
||
| Property Name | Default | Description | | ||
| ------------- | ------- | ----------- | | ||
| USERNAME_LENGTH_MIN | 2 | Minimum length of characters allowed for players and teams | | ||
| USERNAME_LENGTH_MAX | 15 | Maximum length of characters allowed for players and teams | | ||
|
||
|
||
Authentication Properties | ||
------------------------- | ||
|
||
| Property Name | Default | Description | | ||
| ------------- | ------- | ----------- | | ||
| JWT_SECRET_KEY | *none* | Used to encode and decode JWT tokens | | ||
| JWT_AUTH_HEADER_PREFIX | JWT | HTTP authorization header prefix before the JWT | | ||
| JWT_ALGORITHM | HS256 | Algorithm used to encode and decode a JWT | | ||
| JWT_EXPIRATION_DAYS | 5 | Days before a JWT is considered expired | | ||
| JWT_REJECT_IAT_BEFORE | 1483246800000 | A JWT before this time (in milliseconds) is considered invalid | | ||
| PASSWORD_RESET_WINDOW_MINUTES | 20 | Minutes after a password reset key is issued until it expires | | ||
| PASSWORD_RESET_REPEAT_HOURS | 1 | Hours after a password reset is enabled before it can be reset again | | ||
| PASSWORD_MIN_LENGTH | 6 | Minimum allowed length of a user password | | ||
|
||
|
||
Email Properties | ||
---------------- | ||
|
||
| Property Name | Default | Description | | ||
| ------------- | ------- | ----------- | | ||
| EMAIL_ADDRESS | *none* | Gmail address used to email users | | ||
| EMAIL_TITLE | Sparc Pong | Friendly email titled used to email users | | ||
| AUTH_CLIENT_ID | *none* | Oauth2 client id for gmail account | | ||
| AUTH_CLIENT_SECRET | *none* | Oauth2 secret for gmail account | | ||
| AUTH_CLIENT_REFRESH | *none* | Oauth2 refresh token for gmail account | | ||
|
||
|
||
Challenge Properties | ||
-------------------- | ||
|
||
| Property Name | Default | Description | | ||
| ------------- | ------- | ----------- | | ||
| CHALLENGE_ANYTIME | false | Challenges can be issued on any day including weekends | | ||
| CHALLENGE_BACK_DELAY_HOURS | 12 | Hours before a challenger may re-challenge the same opponent | | ||
| ALLOWED_CHALLENGE_DAYS | 4 | Business days until a singles challenge expires | | ||
| ALLOWED_CHALLENGE_DAYS_TEAM | 5 | Business days until a doubles challenge expires | | ||
|
||
|
||
Application Properties | ||
---------------------- | ||
|
||
| Property Name | Default | Description | | ||
| ------------- | ------- | ----------- | | ||
| PORT | 3000 | Port the node server runs on | | ||
| MONGODB_URI | mongodb://127.0.0.1/sparcPongDb | Mongo connection uri | | ||
| MORGAN_FORMAT | tiny | Morgan logging predefined type | | ||
| LADDER_URL | *none* | Root url where the ladder is hosted. Defaults to localhost when MONGODB_URL is not defined. | |
Oops, something went wrong.