Skip to content

Commit 5676c88

Browse files
committed
docs: document newly added env vars
1 parent 6e00374 commit 5676c88

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed

.env.dev.example

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ SECRET_KEY=0738f808b38c82e9c4c16558002aecc1cd1f6480dc5200ad10ca17f7ec41f636
1010
# Get these from the Google API console
1111
GOOGLE_CLIENT_ID=
1212
GOOGLE_CLIENT_SECRET=
13+
14+
# Get theese from the detail page of your GitHub OAuth app
15+
# Refer to https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
16+
GITHUB_CLIENT_ID=
17+
GITHUB_CLIENT_SECRET=
18+
1319
STEMMAWEB_FRONTEND_URL=http://localhost:8888/stemmaweb/
1420

1521
# Get these from the reCAPTCHA Admin console

.env.example

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ SECRET_KEY=7e00ed5d31cd5ee375fa9befcb3b4df60691dec47d0b31aed44331eb7e7d389d
99
# Get these from the Google API console
1010
GOOGLE_CLIENT_ID=
1111
GOOGLE_CLIENT_SECRET=
12+
13+
# Get theese from the detail page of your GitHub OAuth app
14+
# Refer to https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
15+
GITHUB_CLIENT_ID=
16+
GITHUB_CLIENT_SECRET=
17+
1218
STEMMAWEB_FRONTEND_URL=http://127.0.0.1:5000
1319

1420
# Get these from the reCAPTCHA Admin console

middleware/.env.example

+19-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
STEMMAREST_ENDPOINT=http://127.0.0.1:8080/stemmarest
2-
STEMMAWEB_MIDDLEWARE_URL=http://127.0.0.1:3000
1+
STEMMAREST_ENDPOINT=http://stemmarest:8080/stemmarest
2+
STEMMAWEB_MIDDLEWARE_URL=http://localhost:8888/stemmaweb/requests
33

4-
# Generate using `python -c 'import secrets; print(secrets.token_hex())'`
5-
SECRET_KEY=
4+
GUNICORN_WORKERS=1
5+
GUNICORN_BIND=0.0.0.0:3000
66

7+
# Generated via `python -c 'import secrets; print(secrets.token_hex())'`
8+
SECRET_KEY=0738f808b38c82e9c4c16558002aecc1cd1f6480dc5200ad10ca17f7ec41f636
9+
10+
# Get these from the Google API console
711
GOOGLE_CLIENT_ID=
812
GOOGLE_CLIENT_SECRET=
9-
STEMMAWEB_FRONTEND_URL=http://127.0.0.1:5000
13+
14+
# Get theese from the detail page of your GitHub OAuth app
15+
# Refer to https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
16+
GITHUB_CLIENT_ID=
17+
GITHUB_CLIENT_SECRET=
18+
19+
STEMMAWEB_FRONTEND_URL=http://localhost:8888/stemmaweb/
20+
21+
# Get these from the reCAPTCHA Admin console
22+
RECAPTCHA_SITE_KEY=
23+
RECAPTCHA_SECRET_KEY=
1024

1125
LOG_LEVEL=DEBUG
1226
LOGFILE=stemmaweb_middleware.log

middleware/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ successfully. As the table below shows, some of these have default values (hence
1414
required.
1515

1616
| Variable | Description | Default |
17-
|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
17+
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
1818
| `STEMMAREST_ENDPOINT` | The URL where the Stemmarest backend is running | `http://127.0.0.1:8080/stemmarest` |
1919
| `STEMMAWEB_MIDDLEWARE_URL` | The URL where this middleware is running | `http://127.0.0.1:3000` |
2020
| `SECRET_KEY` | Secret key for the Flask application, used by [Flask-Login](https://github.com/maxcountryman/flask-login).<br />Generate it by executing `python -c 'import secrets; print(secrets.token_hex())'` in your shell. | 🚫 |
2121
| `GOOGLE_CLIENT_ID` | Google OAuth client ID | 🚫 |
2222
| `GOOGLE_CLIENT_SECRET` | Google OAuth client secret | 🚫 |
23+
| `GITHUB_CLIENT_ID` | GitHub OAuth client identifier | 🚫 |
24+
| `GITHUB_CLIENT_SECRET` | GitHub OAuth client secret | 🚫 |
25+
| `RECAPTCHA_SITE_KEY` | reCAPTCHA public identifier | 🚫 |
26+
| `RECAPTCHA_SECRET_KEY` | reCAPTCHA private key | 🚫 |
2327
| `STEMMAWEB_FRONTEND_URL` | The URL of the frontend. Will be set as the redirect destination after Google OAuth | `http://127.0.0.1:5000` |
2428
| `LOG_LEVEL` | Logging verbosity | `DEBUG` |
2529
| `LOGFILE` | Destination file to store the logs, relative to this module's root | `stemmaweb_middleware.log` |
@@ -66,4 +70,4 @@ docker run -it \
6670
-e LOGFILE=stemmaweb_middleware.log \
6771
-e LOG_BACKTRACE=True \
6872
stemmaweb-middleware
69-
```
73+
```

0 commit comments

Comments
 (0)