Skip to content

Commit

Permalink
changed iframe url to value of env CKAN_MAPTOMETHOD_URL, the service …
Browse files Browse the repository at this point in the history
…must be reachable from the outside to make the iframe work
  • Loading branch information
Thomas Hanke committed Dec 4, 2023
1 parent 3b9412d commit af770ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Also needed is a Api Token for an account with the right privaledges to make the
CSVWMAPANDTRANSFORM_TOKEN=${CKAN_API_TOKEN}
MAPTOMETHOD_CONTAINER_NAME="ckan_maptomethod"
MAPTOMETHOD_APP_PORT=5002
CKAN_MAPTOMETHOD_URL=http://${MAPTOMETHOD_CONTAINER_NAME}:${MAPTOMETHOD_APP_PORT}
# must be reachable from outside container net or iframe wil not work
CKAN_MAPTOMETHOD_URL=http://<CKAN_HOST>:${MAPTOMETHOD_APP_PORT}
RDFCONVERTER_CONTAINER_NAME="ckan_rdfconverter"
RDFCONVERTER_APP_PORT=5003
CKAN_RDFCONVERTER_URL=http://${RDFCONVERTER_CONTAINER_NAME}:${RDFCONVERTER_APP_PORT}
Expand Down
3 changes: 1 addition & 2 deletions ckanext/csvwmapandtransform/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
import requests
import json
CSVWMAPANDTRANSFORM_TOKEN = os.environ.get("CSVWMAPANDTRANSFORM_TOKEN", "")
MAPTOMETHOD_URL = os.environ.get("CKAN_SITE_URL")+":"+os.environ.get("MAPTOMETHOD_APP_PORT")

MAPTOMETHOD_URL = os.environ.get("CKAN_MAPTOMETHOD_URL")

log = __import__("logging").getLogger(__name__)

Expand Down

0 comments on commit af770ee

Please sign in to comment.