Skip to content

Commit

Permalink
Mijn-7276 cert loading (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
timvanoostrom authored Dec 4, 2023
1 parent 87c00c1 commit 31da235
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@
"": ["AO2", "AO5", "DBS", "KVB", "WMH", "AAN", "FIE"],
}

# Server security / certificates for ZorgNed
SERVER_CLIENT_CERT = os.getenv("MIJN_DATA_CLIENT_CERT")
SERVER_CLIENT_KEY = os.getenv("MIJN_DATA_CLIENT_KEY")

# TODO: Add other AZ env conditions after migration.
if IS_TEST:
if IS_TAP and SERVER_CLIENT_CERT is not None:
# https://stackoverflow.com/a/46570364/756075
# Server security / certificates
cert = tempfile.NamedTemporaryFile(delete=False)
Expand Down
2 changes: 0 additions & 2 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ variables:
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- name: btdDeploy
value: ${{ parameters.btdDeploy }}
- name: dtapName
value: t
- ${{ if ne(parameters.dtapName, 'none') }}:
- name: dtapName
value: ${{ parameters.dtapName }}
Expand Down
7 changes: 3 additions & 4 deletions conf/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
set -e

# AZ AppService allows SSH into a App instance.
if [ $MA_OTAP_ENV == "test" ]
then
# echo "Starting SSH ..."
service ssh start
if [ "$MA_OTAP_ENV" = "test" ]; then
echo "Starting SSH ..."
service ssh start
fi

uwsgi --uid www-data --gid www-data --ini /api/uwsgi.ini

0 comments on commit 31da235

Please sign in to comment.