diff options
| author | alex <alex@pdp7.net> | 2026-01-25 19:20:36 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-01-25 19:20:36 +0100 |
| commit | e649a976fa4d7bc3e70beda0576a8946ef38de4a (patch) | |
| tree | e4874e2dee7bd17fe7c9e45c2556f4c520e1cd63 /README.md | |
| parent | 26a87fd4a71f695e47ff8c5ee143ab1f037fdc9d (diff) | |
Add systemd-credential certificate loading and docs
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -2,12 +2,32 @@ `proxy.py` is a Gemini server that proxies all content to an http or https server. -## Notes +`proxy.py` loads certificates following the structure of Apache mod_md. + +## Providing the certificates via systemd credentials + +With `/etc/systemd/system/gemini-from-http.service`: + +``` +[Service] +LoadCredential=certificates:/etc/apache2/md/domains/ +ExecStart=.../proxy.py --certificates-from-credential certificates +PrivateUsers=self +``` + +Systemd injects the certificates to a private path than only `proxy.py` can read. +The injection is a one off, so you must restart the service to get updated certificates. + +## Providing the certificates manually + +To run `proxy.py` as a regular user, you can run the `package-mod-md-certs` script as root to copy the certificates to your user: ``` su -c ./package-mod-md-certs | tar x ``` +Then you can run: + ``` -./proxy.py domains/ +./proxy.py --certificates-from-path domains/ ``` |
