Skip to content

Commit f70926c

Browse files
committed
self-signed cert should also be CA
Signed-off-by: Phill <[email protected]>
1 parent 92a7080 commit f70926c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Containers/Gitea.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Environment variables need to be set in several stages:
113113
- Generate a self-signed certificate:
114114

115115
``` console
116-
$ docker exec gitea bash -c 'cd /data/git ; gitea cert --host gitea'
116+
$ docker exec gitea bash -c 'cd /data/git ; gitea cert --host gitea --ca'
117117
```
118118

119119
- Uncomment the following environment variables in the service definition:
@@ -163,7 +163,7 @@ Environment variables need to be set in several stages:
163163
* The certificate has a one-year lifetime. It can be regenerated at any time by re-running the command provided earlier. You could, for example, embed it in a `cron` job, like this:
164164

165165
``` crontab
166-
5 0 1 1,7 * docker exec gitea bash -c 'cd /data/git ; gitea cert --host gitea' >/dev/null 2>&1
166+
5 0 1 1,7 * docker exec gitea bash -c 'cd /data/git ; gitea cert --host gitea --ca' >/dev/null 2>&1
167167
```
168168

169169
In words, run the command "at five minutes after midnight on the first of January and the first of July".

0 commit comments

Comments
 (0)