mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 13:00:18 +01:00 
			
		
		
		
	Adapt DNPM configuration
This commit is contained in:
		@@ -13,14 +13,15 @@ services:
 | 
			
		||||
      PROXY_URL: http://beam-proxy:8081
 | 
			
		||||
      PROXY_APIKEY: ${DNPM_BEAM_SECRET_SHORT}
 | 
			
		||||
      APP_ID: dnpm-connect.${PROXY_ID}
 | 
			
		||||
      DISCOVERY_URL: ${DNPM_DISCOVERY_URL}
 | 
			
		||||
      LOCAL_TARGETS_FILE: /conf/connect_targets.json
 | 
			
		||||
      HTTP_PROXY: http://forward_proxy:3128
 | 
			
		||||
      HTTPS_PROXY: http://forward_proxy:3128
 | 
			
		||||
      DISCOVERY_URL: "./conf/central_targets.json"
 | 
			
		||||
      LOCAL_TARGETS_FILE: "./conf/connect_targets.json"
 | 
			
		||||
      HTTP_PROXY: "http://forward_proxy:3128"
 | 
			
		||||
      HTTPS_PROXY: "http://forward_proxy:3128"
 | 
			
		||||
      NO_PROXY: beam-proxy,dnpm-backend
 | 
			
		||||
      RUST_LOG: ${RUST_LOG:-info}
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /etc/bridgehead/dnpm/local_targets.json:/conf/connect_targets.json:ro
 | 
			
		||||
      - /etc/bridgehead/dnpm/central_targets.json:/conf/central_targets.json:ro
 | 
			
		||||
    labels:
 | 
			
		||||
      - "traefik.enable=true"
 | 
			
		||||
      - "traefik.http.routers.dnpm-connect.rule=PathPrefix(`/dnpm-connect`)"
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,6 @@ if [ -n "${ENABLE_DNPM}" ]; then
 | 
			
		||||
	# 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_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
 | 
			
		||||
	DNPM_DISCOVERY_URL="https://dnpm.medizin.uni-tuebingen.de/sites"
 | 
			
		||||
 | 
			
		||||
	# Optionally, start bwhc as well. This is currently only experimental
 | 
			
		||||
	if [ -n "${ENABLE_DNPM_BWHC}" ]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user