mirror of https://github.com/samply/bridgehead.git
Rename traefik certificate/key
This commit is contained in:
parent
9658f6ed2e
commit
a8a33291a7
|
@ -50,8 +50,8 @@ if [ ! -d "/etc/bridgehead/traefik-tls" ]; then
|
||||||
mkdir -p /etc/bridgehead/traefik-tls
|
mkdir -p /etc/bridgehead/traefik-tls
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "/etc/bridgehead/traefik-tls/traefik.crt" ]; then
|
if [ ! -e "/etc/bridgehead/traefik-tls/fullchain.pem" ]; then
|
||||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout /etc/bridgehead/traefik-tls/traefik.key -out /etc/bridgehead/traefik-tls/traefik.crt -days 3650 -subj "/CN=$HOST"
|
openssl req -x509 -newkey rsa:4096 -nodes -keyout /etc/bridgehead/traefik-tls/privkey.pem -out /etc/bridgehead/traefik-tls/fullchain.pem -days 3650 -subj "/CN=$HOST"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /etc/bridgehead/vault.conf ]; then
|
if [ -e /etc/bridgehead/vault.conf ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
tls:
|
tls:
|
||||||
certificates:
|
certificates:
|
||||||
- certFile: /certs/traefik.crt
|
- certFile: /certs/fullchain.pem
|
||||||
keyFile: /certs/traefik.key
|
keyFile: /certs/privkey.pem
|
||||||
|
|
Loading…
Reference in New Issue