-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename env vars; Add debug check to overwrite error message
- Loading branch information
1 parent
75b1bfd
commit ed62f1e
Showing
7 changed files
with
109 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
!.gitignore | ||
coverage.out |
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 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 |
---|---|---|
|
@@ -26,26 +26,46 @@ The project also integrates with LOG_SENTRY_LEVEL (default: "warn") and includes | |
## ENV Vars | ||
|
||
``` | ||
# app | ||
APP_KEY="YourAPPKeyHere" | ||
CORS_ORIGIN=api.acme.com | ||
DB_STRING="postgres://postgres:YourPostgresPassword@localhost:5432/your_database_dev?sslmode=disable" | ||
ENABLE_CAPTURE_ERRORS=true | ||
ENABLE_CORS_MIDDLEWARE=true | ||
ENABLE_LOG_REQUEST=true | ||
IP_CLIENT_HEADER_KEY="CF-Connecting-IP" | ||
APP_DEBUG=true | ||
APP_PORT="8080" | ||
# jwt | ||
JWT_EXP="1h" | ||
JWT_REFRESH_EXP="168d" | ||
JWT_KEY="YourJWTKeyHere" | ||
LOG_APP_LEVEL="warn" | ||
LOG_SENTRY_LEVEL="warn" | ||
# database | ||
DB_STRING="postgres://postgres:YourPostgresPassword@localhost:5432/your_database_dev?sslmode=disable" | ||
DB_MAX_OPEN_CONNS=20 | ||
# mailgun | ||
MAIL_FROM="[email protected]" | ||
MAILGUN_API_KEY="YourMailgunAPIKey" | ||
MAILGUN_DOMAIN="mailer.acme.com" | ||
PORT="8080" | ||
RATE_LIMIT="5" | ||
REJECT_NON_SPECIFIC_DOMAIN="acme.com" | ||
# sentry | ||
SENTRY_DSN="" | ||
SENTRY_LEVEL="warn" | ||
# log | ||
LOG_APP_LEVEL="warn" | ||
LOG_SENTRY_LEVEL="warn" | ||
LOG_REQUEST_ENABLED=true | ||
# web application firewall | ||
WAF_ENABLED=true | ||
WAF_RATE_LIMIT="5" | ||
WAF_REJECT_REQUESTS_EXCEPT="acme.com" | ||
# get requestor's ip | ||
IP_CLIENT_HEADER_KEY="CF-Connecting-IP" | ||
# cross origin resource | ||
CORS_ORIGIN="*" | ||
CORS_METHODS="POST, GET, OPTIONS, PUT, DELETE" | ||
CORS_HEADERS="Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, X-API-KEY" | ||
``` | ||
|
||
## Prebuilt Endpoints | ||
|
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 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 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 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