summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorJone Marius Vignes <73816+inful@users.noreply.github.com>2018-03-25 12:47:06 +0200
committerLauris BH <lauris@nix.lv>2018-03-25 13:47:06 +0300
commitcb87f29b76f661d9c726579067c9c64db55fd970 (patch)
treeb0b2a89dae965075b241925cbaeea2f474715632 /docker
parent9350ba7947d8caa6e7338d7c9e54df2f3aef2146 (diff)
downloadgitea-cb87f29b76f661d9c726579067c9c64db55fd970.tar.gz
gitea-cb87f29b76f661d9c726579067c9c64db55fd970.zip
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.
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/etc/s6/gitea/setup2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/etc/s6/gitea/setup b/docker/etc/s6/gitea/setup
index e6dd3ffa2b..8e6441c5c2 100755
--- a/docker/etc/s6/gitea/setup
+++ b/docker/etc/s6/gitea/setup
@@ -1,5 +1,7 @@
#!/bin/bash
+/usr/sbin/update-ca-certificates
+
if [ ! -d /data/git/.ssh ]; then
mkdir -p /data/git/.ssh
chmod 700 /data/git/.ssh