From 5052e86fcad4f938da270fbcda7df666ee7c8625 Mon Sep 17 00:00:00 2001 From: Yadd Date: Wed, 14 Aug 2024 09:48:37 +0400 Subject: [PATCH] Broker update --- base-no-s6/install/etc/cont-init.d/update-llng-conf | 2 ++ portal/__testbroker__/docker-compose.yml | 12 +++++++----- portal/__testbroker__/manager-nginx.conf | 9 +++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 portal/__testbroker__/manager-nginx.conf diff --git a/base-no-s6/install/etc/cont-init.d/update-llng-conf b/base-no-s6/install/etc/cont-init.d/update-llng-conf index 3dc17fb..259878f 100755 --- a/base-no-s6/install/etc/cont-init.d/update-llng-conf +++ b/base-no-s6/install/etc/cont-init.d/update-llng-conf @@ -82,6 +82,8 @@ if test "$DBI_CHAIN" != ""; then /usr/share/docker-llng/updateConf set casStorage "Apache::Session::Browseable::PgJSON" /usr/share/docker-llng/updateConf set casStorageOptions '{"TableName":"'"$PG_CAS_TABLE"'","DataSource":"'"$DBI_CHAIN"'","UserName":"'"$DBI_USER"'","Password":"'"$DBI_PASSWORD"'","Commit":1}' fi + /usr/share/docker-llng/updateConf set messageBroker ::Pg + /usr/share/docker-llng/updateConf set messageBrokerOptions '{"dbiChain":"'"$DBI_CHAIN"'","dbiUser":"'"$DBI_USER"'","dbiPassword":"'"$DBI_PASSWORD"'"}' else echo "Previous configuration found, skipping configuration conversion" fi diff --git a/portal/__testbroker__/docker-compose.yml b/portal/__testbroker__/docker-compose.yml index d14ee9b..a63ff9d 100644 --- a/portal/__testbroker__/docker-compose.yml +++ b/portal/__testbroker__/docker-compose.yml @@ -13,8 +13,8 @@ services: retries: 5 networks: - db - ports: - - 5432:5432 + #ports: + # - 5432:5432 auth: container_name: test-broker-auth @@ -28,12 +28,14 @@ services: - LOGGER=stderr - USERLOGGER=stderr - PORTAL=http://auth.example.com:19876/ + volumes: + - ./manager-nginx.conf:/etc/nginx/sites-enabled/zzz-manager-nginx.conf networks: - db - ports: - - 19876:80 + #ports: + # - 19876:80 - manager: + manager.example.com: container_name: test-broker-manager depends_on: db: diff --git a/portal/__testbroker__/manager-nginx.conf b/portal/__testbroker__/manager-nginx.conf new file mode 100644 index 0000000..71be2dd --- /dev/null +++ b/portal/__testbroker__/manager-nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + listen [::]:80; + server_name manager.example.com; + root /usr/share/lemonldap-ng/manager/htdocs/; + location / { + proxy_pass http://manager.example.com/; + } +}