mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 06:00:14 +02:00
Add DNPM Node feature to minimal
This commit is contained in:
@ -7,7 +7,7 @@ services:
|
||||
environment:
|
||||
- ZPM_SITE=${ZPM_SITE}
|
||||
volumes:
|
||||
- /etc/dnpm/config:/bwhc_config
|
||||
- /etc/bridgehead/dnpm:/bwhc_config:ro
|
||||
- ${DNPM_DATA_DIR}:/bwhc_data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
@ -29,8 +29,5 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.bwhc-frontend.rule=PathPrefix(`/`)"
|
||||
# - "traefik.http.middlewares.bwhc-frontend-strip.stripprefix.prefixes=/bwhc-frontend"
|
||||
# - "traefik.http.routers.bwhc-frontend.middlewares=bwhc-frontend-strip"
|
||||
- "traefik.http.services.bwhc-frontend.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.bwhc-frontend.tls=true"
|
||||
|
||||
|
@ -5,6 +5,7 @@ if [ -n "${ENABLE_DNPM_NODE}" ]; then
|
||||
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-node-compose.yml"
|
||||
|
||||
# Set variables required for BwHC Node. ZPM_SITE is assumed to be set in /etc/bridgehead/<project>.conf
|
||||
DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password for DNPM. It is not required to be secret.\" | sha1sum | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||
if [ -z "${ZPM_SITE+x}" ]; then
|
||||
log ERROR "Mandatory variable ZPM_SITE not defined!"
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user