Skip to content

Commit bf38280

Browse files
authored
Fix: docs dependencies and keypair configuration (#320)
2 parents 2d5fafe + ba6f113 commit bf38280

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

.markdownlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ MD024: false
1313

1414
# Allow inline HTML
1515
MD033: false
16+
17+
# Allow fenced code blocks
18+
MD046: false

docs/configuration/README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,35 @@ If you want to run with different settings, you should:
99
1. Set the `ELIGIBILITY_SERVER_SETTINGS` environment variable to the path of your new file
1010

1111
!!! note
12-
The Eligibility server loads in settings using Flask's methods for [Configuration Handling](https://flask.palletsprojects.com/en/2.2.x/config/).
1312

14-
!!! important
15-
The default settings that will always be loaded are in [eligibility_server/settings.py](https://github.com/cal-itp/eligibility-server/blob/dev/eligibility_server/settings.py)
13+
The Eligibility server loads in settings using Flask's methods for [Configuration Handling](https://flask.palletsprojects.com/en/2.3.x/config/).
14+
15+
!!! note
16+
17+
The default settings that will always be loaded are in [eligibility_server/settings.py](https://github.com/cal-itp/eligibility-server/blob/dev/eligibility_server/settings.py)
18+
19+
## Creating a new keypair
20+
21+
!!! warning
22+
23+
The sample keys cannot be used for production. You must create and use a new keypair.
24+
25+
To create a new keypair, start by creating the private key e.g. using [OpenSSL](https://www.openssl.org/docs/man3.1/man1/openssl-genrsa.html):
26+
27+
```console
28+
openssl genrsa -out private.pem -traditional 4096
29+
```
30+
31+
Next, extract the public key e.g. using [OpenSSL](https://www.openssl.org/docs/man3.1/man1/openssl-rsa.html):
32+
33+
```console
34+
openssl rsa -in private.pem -pubout -out public.pem
35+
```
36+
37+
Now there are two files:
38+
39+
- The private key, kept secret for this server instance only: `private.pem`
40+
- The public key, shared with all clients of this server: `public.pem`
41+
42+
The server instance also needs a public key reference from its client, so the above process should be repeated on the client-
43+
side and the client's _public key_ should be shared with the server.

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
fontawesome_markdown
21
mkdocs
32
mkdocs-awesome-pages-plugin
43
mkdocs-macros-plugin

keys/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# keys
22

3-
*These keys are just samples*. They cannot be used for production systems.
3+
_These keys are just samples_. They cannot be used for production systems.
4+
5+
See more at <https://docs.calitp.org/eligibility-server/configuration>

mkdocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ markdown_extensions:
5757
# insert a blank space before the character
5858
permalink: ""
5959
- smarty
60-
- fontawesome_markdown

0 commit comments

Comments
 (0)