Skip to content

Commit cb87f29

Browse files
infullafriks
authored andcommitted
Update certificates to enable self-signed certs (#3708)
Why: * We are using self-signed ssl certificates for internal services, which results in failures when gitea tries to communicate through webhooks with these. We would like to enable gitea to be able to use these certificates without having to build custom docker images. How * We add the internal certificates to /usr/local/share/ca-certificates on the host * We read-only mount /usr/local/share/ca-certificates from the host to /usr/local/share/ca-certificates in the container * We do a update-ca-certificates in the alpine container before starting gitea This should have no consequence for users that do not have the need to handle self-signed certificates, as update-ca-certificates should be idempotent.
1 parent 9350ba7 commit cb87f29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/etc/s6/gitea/setup

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
/usr/sbin/update-ca-certificates
4+
35
if [ ! -d /data/git/.ssh ]; then
46
mkdir -p /data/git/.ssh
57
chmod 700 /data/git/.ssh

0 commit comments

Comments
 (0)