-
Notifications
You must be signed in to change notification settings - Fork 34
/
bldr.env.sample
116 lines (97 loc) · 5.23 KB
/
bldr.env.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#!/bin/bash
# Only enable and set these if you are using externally hosted PostgreSQL(RDS, Azure Database for PostgreSql etc).
# set PG_EXT_ENABLED = true, uncomment PG_USER and update PG_PASSWORD and POSTGRES_HOST appropriately.
# Migrations from local PostgreSQL to RDS are currently not supported.
#export PG_EXT_ENABLED=false
#export PG_USER=hab
#export PG_PASSWORD=hab
# The endpoint and port for your Postgresql(local, RDS, Azure Database for PostgreSql etc)
# Change only if needed
export POSTGRES_HOST=localhost
export POSTGRES_PORT=5432
# The endpoint, key and secret for your Minio instance (see README)
# Change these before the first install if needed
export MINIO_ENDPOINT=http://localhost:9000
export MINIO_BUCKET=habitat-builder-artifact-store.local
export MINIO_ACCESS_KEY=depot
export MINIO_SECRET_KEY=password
# If you'd like to use AWS S3 instead of Minio,
# set S3_ENABLED=true and change the other S3 associated variables appropriately.
export S3_ENABLED=false
export S3_REGION=us-west-2
export S3_BUCKET=habitat-builder-artifact-store.local
export S3_ACCESS_KEY=depotaccesskey
export S3_SECRET_KEY=depotsecretkey
# If you'd like to use Artifactory instead of Minio, uncomment
# and set the following variables appropriately.
# IMPORTANT: See the README for more info
# export ARTIFACTORY_ENABLED=true
# export ARTIFACTORY_API_URL=http://localhost:8081
# export ARTIFACTORY_API_KEY=foo
# export ARTIFACTORY_REPO=habitat-builder-artifact-store
# Modify these as needed for the on-premise OAuth2 provider.
# The variables below are configured for GitHub by default,
# but appropriate values for Bitbucket, GitLab, Azure AD and Okta
# are also included as comments.
# Whether SSL is enabled for the on-prem depot
export APP_SSL_ENABLED=false
# The URL for this instance of the on-prem depot
# IMPORTANT: If SSL is enabled, APP_URL should start be https
export APP_URL=http://localhost/
# The OAUTH_PROVIDER value can be "github", "gitlab", "bitbucket", "azure-ad",
# "okta" or "chef-automate"
export OAUTH_PROVIDER=github
# export OAUTH_PROVIDER=bitbucket
# export OAUTH_PROVIDER=gitlab
# export OAUTH_PROVIDER=azure-ad
# export OAUTH_PROVIDER=okta
# export OAUTH_PROVIDER=chef-automate
# The OAUTH_USERINFO_URL is the API endpoint that will be used for user info
export OAUTH_USERINFO_URL=https://api.github.com/user
# export OAUTH_USERINFO_URL=https://api.bitbucket.org/1.0/user
# export OAUTH_USERINFO_URL=https://gitlab.com/oauth/userinfo
# export OAUTH_USERINFO_URL=https://login.microsoftonline.com/<tenant-id>/openid/userinfo
# export OAUTH_USERINFO_URL=https://<your.okta.domain>.com/oauth2/v1/userinfo
# export OAUTH_USERINFO_URL=https://<your.automate.domain>/session/userinfo
# The OAUTH_AUTHORIZE_URL is the *fully qualified* OAuth2 authorization endpoint
export OAUTH_AUTHORIZE_URL=https://github.com/login/oauth/authorize
# export OAUTH_AUTHORIZE_URL=https://bitbucket.org/site/oauth2/authorize
# export OAUTH_AUTHORIZE_URL=https://gitlab.com/oauth/authorize
# export OAUTH_AUTHORIZE_URL=https://login.microsoftonline.com/<tenant-id>/oauth2/authorize
# export OAUTH_AUTHORIZE_URL=https://<your.okta.domain>.com/oauth2/v1/authorize
# export OAUTH_AUTHORIZE_URL=https://<your.automate.domain>/session/new
# The OAUTH_SIGNUP_URL is the link used to register users with the OAUTH provider
export OAUTH_SIGNUP_URL=https://github.com/join
# export OAUTH_SIGNUP_URL=https://bitbucket.org/account/signup/
# export OAUTH_SIGNUP_URL=https://gitlab.com/users/sign_in#register-pane
# The OAUTH_TOKEN_URL is the *fully qualified* OAuth2 token endpoint
export OAUTH_TOKEN_URL=https://github.com/login/oauth/access_token
# export OAUTH_TOKEN_URL=https://bitbucket.org/site/oauth2/access_token
# export OAUTH_TOKEN_URL=https://gitlab.com/oauth/token
# export OAUTH_TOKEN_URL=https://login.microsoftonline.com/tenant-id/oauth2/token
# export OAUTH_TOKEN_URL=https://your.okta.domain.com/oauth2/v1/token
# export OAUTH_TOKEN_URL=https://<your.automate.domain>/session/token
# The OAUTH_REDIRECT_URL is the registered OAuth2 redirect
# IMPORTANT: If SSL is enabled, the redirect URL should be https
# IF SCALING FRONTEND, POINT THIS AT YOUR LOAD BALANCER
export OAUTH_REDIRECT_URL=http://localhost/
# The OAUTH_CLIENT_ID is the registered OAuth2 client id
export OAUTH_CLIENT_ID=0123456789abcdef0123
# The OAUTH_CLIENT_SECRET is the registered OAuth2 client secret
export OAUTH_CLIENT_SECRET=0123456789abcdef0123456789abcdef01234567
# Modify these only if there is a specific need, otherwise leave as is
export BLDR_CHANNEL=on-prem-stable
export BLDR_ORIGIN=habitat
export HAB_BLDR_URL=https://bldr.habitat.sh/
# From the Automate CLI use
# export HAB_BLDR_URL=https://MY_ON_PREM_URL/bldr/v1/
# Modify if you are splitting frontend and backend on separate nodes
# If so, this should include a --peer argument for each builder IP or hostname
# including all frontend and backend nodes.
# For example: export HAB_BLDR_PEER_ARG="--peer host1 --peer host2 --peer host3"
export HAB_BLDR_PEER_ARG=""
# Help us make Habitat better! Opt into analytics by changing the ANALYTICS_ENABLED
# setting below to true, then optionally provide your company name. (Analytics is
# disabled by default. See our privacy policy at https://www.habitat.sh/legal/privacy-policy/.)
export ANALYTICS_ENABLED=false
export ANALYTICS_COMPANY_NAME=""