add port quick solution for ssl cert verification with portnumber; genereate persistent connector password

This commit is contained in:
PierreDelpy 2022-10-26 14:33:38 +00:00
parent 404e5440b8
commit 5c65ae9638
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,8 @@ services:
NNGM_CTS_APIKEY: ${NNGM_CTS_APIKEY} NNGM_CTS_APIKEY: ${NNGM_CTS_APIKEY}
NNGM_CRYPTKEY: ${NNGM_CRYPTKEY} NNGM_CRYPTKEY: ${NNGM_CRYPTKEY}
restart: always restart: always
ports:
- "8080:8080"
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.connector.rule=PathPrefix(`/ccp-connector`)" - "traefik.http.routers.connector.rule=PathPrefix(`/ccp-connector`)"

View File

@ -7,4 +7,5 @@ function nngmSetup() {
fi fi
} }
CONNECTOR_POSTGRES_PASSWORD="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)" #CONNECTOR_POSTGRES_PASSWORD="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
CONNECTOR_POSTGRES_PASSWORD="$(echo -n /etc/bridgehead/pki/mannheim.priv.pem | sha256sum | head -c 20)"