Skip to content
Snippets Groups Projects
Commit 471ca7fe authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed a few misconfigurations.

parent e602030e
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,17 @@ services:
- DJANGO_DEBUG=True
- DJANGO_LOG_LEVEL=CRITICAL
#- DJANGO_SECRET_KEY=""
- OIDC_RP_CLIENT_ID=<secret>
- OIDC_RP_CLIENT_SECRET=<secret>
- OIDC_OP_JWKS_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/jwk
- OIDC_OP_AUTHORIZATION_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/authorize
- OIDC_OP_TOKEN_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/token
- OIDC_OP_USER_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/userinfo
- LOGIN_REDIRECT_URL=https://localhost/esap-gui/login
- LOGOUT_REDIRECT_URL=https://localhost/esap-gui/logout
- LOGIN_REDIRECT_URL_FAILURE=https://localhost/esap-gui/error
- RUCIO_HOST=https://escape-rucio.cern.ch
- RUCIO_AUTH_HOST=https://escape-rucio-auth.cern.ch/
ports:
- "8000:8000"
#volumes:
......
......@@ -20,7 +20,11 @@ cd /opt/esap-api-gateway/esap/ &&
# Apply migrations if any
# Note: this will also indirectly wait for the DB to become up and reachable
echo "Applying migrations if any..."
python3 manage.py migrate --noinput --settings=esap.settings.dev
python3 manage.py migrate accounts --database=accounts --settings=esap.settings.dev --no-input
python3 manage.py migrate rucio --database=rucio --settings=esap.settings.dev --no-input
python3 manage.py migrate ida --database=ida --settings=esap.settings.dev --no-input
python3 manage.py migrate --settings=esap.settings.dev --no-input
EXIT_CODE=$?
echo "Exit code: $EXIT_CODE"
if [[ "x$EXIT_CODE" != "x0" ]] ; then
......
......@@ -44,6 +44,10 @@ COPY sudoers /etc/sudoers
RUN cd /opt && git clone https://git.astron.nl/astron-sdc/esap-gui.git
RUN cd /opt/esap-gui && git pull && git checkout 2882da5a
# Chenge hardcoded API URL
RUN sed -i 's#http://localhost:5555/esap-api/#/esap-api/#g' /opt/esap-gui/src/contexts/GlobalContext.js
RUN sed -i 's#https://sdc-dev.astron.nl/esap-api/#/esap-api/#g' /opt/esap-gui/src/contexts/GlobalContext.js
RUN cd /opt/esap-gui && npm install
RUN cd /opt/esap-gui && npm run build
......
......@@ -47,6 +47,12 @@
ProxyPass / http://gui:8001/
ProxyPassReverse / http://gui:8001/
# Or, alternatively:
#ProxyPass /esap-gui/ http://gui:8001/esap-gui/
#ProxyPassReverse /esap-gui/ http://gui:8001/esap-gui/
#ProxyPass /static/ http://gui:8001/static/
#ProxyPassReverse /static/ http://gui:8001/static/
</VirtualHost>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment