forked from netlify/git-gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ORGANIC-467. Added the option to specify Authenticator to use in env.
- Loading branch information
Showing
4 changed files
with
46 additions
and
27 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
# Warning: Many configuration would not work with quote (ie ""). | ||
# Do not use quote (ie, "") if you start `git-gateway` with docker command: `--env-file` | ||
|
||
# JWT Secret is not needed for RS256. Instead, issuer should be specified | ||
# (eg, https://dev-1234.oktapreview.com/oauth2/default) | ||
GITGATEWAY_JWT_SECRET= | ||
# <> config for JWT Token with HS256 alg | ||
# AUTHENTICATOR=bearer-jwt-token | ||
|
||
# @TODO - REQUIRED for Okta | ||
ISSUER= | ||
GITGATEWAY_JWT_SECRET= | ||
# </> | ||
|
||
# @TODO - REQUIRED for Okta | ||
CLIENT_ID= | ||
# <> config for JWT Token with Okta (RS256) alg | ||
AUTHENTICATOR=bearer-okta-jwt-token | ||
|
||
# REQUIRED for AUTHENTICATOR=bearer-okta-jwt-token | ||
AUD=api://default | ||
|
||
GITGATEWAY_DB_DRIVER=sqlite3 | ||
DATABASE_URL=gorm.db | ||
# REQUIRED for AUTHENTICATOR=bearer-okta-jwt-token | ||
ISSUER= | ||
# </> | ||
|
||
# @TODO - Is there way to expose internal port from Docker? | ||
GITGATEWAY_API_HOST=0.0.0.0 | ||
PORT=8087 | ||
# REQUIRED for both AUTHENTICATOR = {bearer-jwt-token or bearer-okta-jwt-token} | ||
CLIENT_ID= | ||
|
||
# @TODO - REQUIRED | ||
# REQUIRED for GITHUB | ||
GITGATEWAY_GITHUB_ACCESS_TOKEN= | ||
|
||
# @TODO - REQUIRED | ||
GITGATEWAY_GITHUB_REPO= | ||
# REQUIRED for GITHUB | ||
GITGATEWAY_GITHUB_REPO=owner/name | ||
|
||
# Commented out to allow roles | ||
GITGATEWAY_ROLES=admin,cms | ||
|
||
# DB | ||
GITGATEWAY_DB_DRIVER=sqlite3 | ||
DATABASE_URL=gorm.db | ||
|
||
# Original example.env wrote: leave blank to allow all roles. But, it won't | ||
# work unless it is commented out | ||
# GITGATEWAY_ROLES= | ||
# Startup Options | ||
GITGATEWAY_API_HOST=localhost | ||
PORT=9999 |