mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-27 21:30:53 +08:00
docker: change ssl volume path
otherwise ca-certificate will be missing and it can't install package through https
This commit is contained in:
parent
475f5c23bc
commit
7fd67438af
@ -1,12 +1,13 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
if test -f /etc/ssl/gmid.pem; then
|
if test -f /ssl/gmid.pem; then
|
||||||
echo "OK certificate exists"
|
echo "OK certificate exists"
|
||||||
else
|
else
|
||||||
echo "generating certificate..."
|
echo "generating certificate..."
|
||||||
apk add libressl
|
mkdir /ssl
|
||||||
|
apk add --no-cache libressl
|
||||||
libressl req -x509 -newkey rsa:4096 -nodes \
|
libressl req -x509 -newkey rsa:4096 -nodes \
|
||||||
-keyout /etc/ssl/private/gmid.key \
|
-keyout /ssl/private/gmid.key \
|
||||||
-out /etc/ssl/gmid.pem \
|
-out /ssl/gmid.pem \
|
||||||
-days 365 -subj "/CN=$GEMINI_HOST"
|
-days 365 -subj "/CN=$GEMINI_HOST"
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
server $gem_host {
|
server $gem_host {
|
||||||
cert "/etc/ssl/gmid.pem"
|
cert "/ssl/gmid.pem"
|
||||||
key "/etc/ssl/private/gmid.key"
|
key "/ssl/private/gmid.key"
|
||||||
root "/dongdigua.github.io"
|
root "/dongdigua.github.io"
|
||||||
|
|
||||||
cgi "/cgi/*"
|
cgi "/cgi/*"
|
||||||
|
Loading…
Reference in New Issue
Block a user