mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 04:50:17 +01:00 
			
		
		
		
	Address review comments
This commit is contained in:
		@@ -8,7 +8,7 @@ services:
 | 
			
		||||
 | 
			
		||||
  dnpm-beam-connect:
 | 
			
		||||
    depends_on: [ beam-proxy ]
 | 
			
		||||
    image: docker.verbis.dkfz.de/cache/samply/beam-connect:sites-without-auth
 | 
			
		||||
    image: docker.verbis.dkfz.de/cache/samply/beam-connect:dnpm
 | 
			
		||||
    container_name: bridgehead-dnpm-beam-connect
 | 
			
		||||
    environment:
 | 
			
		||||
      PROXY_URL: http://beam-proxy:8081
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,10 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
if [ -n "${ENABLE_DNPM}" ]; then
 | 
			
		||||
	log INFO "DNPM setup detected (Beam.Connect) -- will start Beam.Connect for DNPM."
 | 
			
		||||
	log DEBUG "DNPM setup detected (Beam.Connect) -- will start Beam.Connect for DNPM."
 | 
			
		||||
	OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose.yml"
 | 
			
		||||
 | 
			
		||||
	# Set variables required for Beam-Connect
 | 
			
		||||
	DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
 | 
			
		||||
	DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password for DNPM. It is not required to be secret.\" | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
 | 
			
		||||
	DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user