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:
19
19
@echo " Generating postgres password in $@ "
20
20
@echo " POSTGRES_PASSWORD=$( shell openssl rand -hex 32) " > $@
21
21
22
+ secrets/oauth.env :
23
+ @echo " Need oauth.env file in secrets with GitHub parameters"
24
+ @exit 1
25
+
22
26
secrets/jupyterhub.crt :
23
27
@echo " Need an SSL certificate in secrets/jupyterhub.crt"
24
28
@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:
118
118
- setting the ` GITHUB_CLIENT_ID ` , ` GITHUB_CLIENT_SECRET ` , and
119
119
` OAUTH_CALLBACK_URL ` environment variables when you run the
120
120
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:
123
124
124
- ` .env ` file
125
+ ` oauth .env` file
125
126
```
126
127
GITHUB_CLIENT_ID=<github_client_id>
127
128
GITHUB_CLIENT_SECRET=<github_client_secret>
128
129
OAUTH_CALLBACK_URL=https://<myhost.mydomain>/hub/oauth_callback
129
130
```
130
131
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
132
133
to lookup environment variables. If you choose to place the GitHub
133
134
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
135
136
these secrets to source control).
136
137
137
138
You can’t perform that action at this time.
0 commit comments