- Add functionality to query online sources (Keyservers, etc) for certificates. - Use introducers to determine which UserIDs should be fetched from online soources. Check certifications before importing certifiactes into the local cert store. - start docker image for local end-to-end testing.
50 lines
956 B
Bash
Executable File
50 lines
956 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
DOMAIN=$1
|
|
IP=$2
|
|
CERTS=/etc/local_certs
|
|
DIR=/etc/hockeypuck.d
|
|
CONF_NAME=hockeypuck_
|
|
|
|
if [ "$DOMAIN" == "" ] ; then
|
|
echo "USAGE: $0 DOMAIN IP"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$IP" == "" ] ; then
|
|
echo "USAGE: $0 DOMAIN IP"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d $DIR ] ; then
|
|
mkdir -p $DIR
|
|
fi
|
|
|
|
DB_NAME=$(echo $DOMAIN | tr -d '.-')
|
|
|
|
cat << EO_CONF > $DIR/$CONF_NAME$DOMAIN.conf
|
|
[hockeypuck]
|
|
loglevel="INFO"
|
|
logfile="/tmp/hockeypuck_$DOMAIN.log"
|
|
indexTemplate="/var/www/templates/index.html.tmpl"
|
|
vindexTemplate="/var/www/templates/index.html.tmpl"
|
|
statsTemplate="/var/www/templates/stats.html.tmpl"
|
|
webroot="/var/www/"
|
|
|
|
[hockeypuck.hkp]
|
|
bind="$IP:11371"
|
|
|
|
[hockeypuck.hkps]
|
|
bind="$IP:443"
|
|
logRequestDetails=false
|
|
cert="$CERTS/$DOMAIN.crt"
|
|
key="$CERTS/$DOMAIN.key"
|
|
|
|
[hockeypuck.openpgp.db]
|
|
driver="postgres-jsonb"
|
|
dsn="database=hkp_$DB_NAME host=/var/run/postgresql port=5432 sslmode=disable"
|
|
|
|
[hockeypuck.conflux.recon.leveldb]
|
|
path="/tmp/${DOMAIN}_recon.db"
|
|
EO_CONF
|