File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ secrets/postgres.env:
1919 @echo " Generating postgres password in $@ "
2020 @echo " POSTGRES_PASSWORD=$( shell openssl rand -hex 32) " > $@
2121
22+ secrets/oauth.env :
23+ @echo " Need oauth.env file in secrets with GitHub parameters"
24+ @exit 1
25+
2226secrets/jupyterhub.crt :
2327 @echo " Need an SSL certificate in secrets/jupyterhub.crt"
2428 @exit 1
Original file line number Diff line number Diff line change @@ -118,20 +118,21 @@ Secret and OAuth callback url. You can do this by either:
118118- setting the ` GITHUB_CLIENT_ID ` , ` GITHUB_CLIENT_SECRET ` , and
119119 ` OAUTH_CALLBACK_URL ` environment variables when you run the
120120 JupyterHub container, or
121- - add them to the ` .env ` file in the root directory of this repository.
122- For example, update the following lines in the ` .env ` file:
121+ - add them to an ` oauth.env ` file in the ` secrets ` directory of this repository.
122+ You may need to create both the ` secrets ` directory and the ` oauth.env ` file.
123+ For example, add the following lines in the ` oauth.env ` file:
123124
124- ` .env ` file
125+ ` oauth .env` file
125126 ```
126127 GITHUB_CLIENT_ID=<github_client_id>
127128 GITHUB_CLIENT_SECRET=<github_client_secret>
128129 OAUTH_CALLBACK_URL=https://<myhost.mydomain>/hub/oauth_callback
129130 ```
130131
131- ** Note:** The ` .env ` file is a special file that Docker Compose uses
132+ ** Note:** The ` oauth .env` file is a special file that Docker Compose uses
132133 to lookup environment variables. If you choose to place the GitHub
133134 OAuth application settings in this file, you should make sure that the
134- file remains private (be careful to not commit the ` .env ` file with
135+ file remains private (be careful to not commit the ` oauth .env` file with
135136 these secrets to source control).
136137
137138
You can’t perform that action at this time.
0 commit comments