Skip to content

Commit

Permalink
Broker update
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Aug 14, 2024
1 parent f49a325 commit 5052e86
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions base-no-s6/install/etc/cont-init.d/update-llng-conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions portal/__testbroker__/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
retries: 5
networks:
- db
ports:
- 5432:5432
#ports:
# - 5432:5432

auth:
container_name: test-broker-auth
Expand All @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions portal/__testbroker__/manager-nginx.conf
Original file line number Diff line number Diff line change
@@ -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/;
}
}

0 comments on commit 5052e86

Please sign in to comment.