Skip to content

Commit

Permalink
test certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
backmari committed Dec 20, 2024
1 parent 8f04f50 commit 5477dd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ services:
dockerfile: Dockerfile.webmon
volumes:
- web-static:/var/www/workflow/static/
# add in folder to be picked up by update-ca-certificates in docker entrypoint
- ./nginx/nginx.crt:/usr/local/share/ca-certificates/nginx.crt
- ./nginx/nginx.crt:/nginx.crt
env_file:
- .env
- .env.ci
Expand All @@ -40,7 +39,7 @@ services:
- CATALOG_URL=${CATALOG_URL}
- CATALOG_API_TOKEN=${CATALOG_API_TOKEN}
- GUNICORN_CMD_ARGS=--reload --workers=8
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
- REQUESTS_CA_BUNDLE=/nginx.crt
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8000/ht || exit 1
interval: 60s
Expand Down
2 changes: 0 additions & 2 deletions src/webmon_app/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ if [[ "$DJANGO_SETTINGS_MODULE" != *".prod" ]]; then
>&2 echo "Not in Production, setting up test users InstrumentScientist, and GeneralUser"
python $MANAGE_PY_WEBMON ensure_adminuser --username="InstrumentScientist" --email='[email protected]' --password="InstrumentScientist"
python $MANAGE_PY_WEBMON ensure_user --username="${GENERAL_USER_USERNAME}" --email='[email protected]' --password="${GENERAL_USER_PASSWORD}"
>&2 echo "Not in Production, updating certificates to add self-signed certificate"
update-ca-certificates
fi

# start up web-service
Expand Down

0 comments on commit 5477dd5

Please sign in to comment.