geosolutions-it/C195-azure-workspace

hostname different from VM name

Closed this issue · 2 comments

etj commented

The default setup expects that the final hostname is the name of the VM in the azure context. This is not the case.
The only part where the domainname is configurable in the CKAN site, but all the nginx/letsencript part will use the VM names.

Some changes are needed.

etj commented

Here a quick fix in the docker-comose that should be parametrized:

geosolutions@anaeehostname:~/C195-azure-workspace/azure/resourcegroup_deployment/ckan-compose$ git diff docker-compose.yml
diff --git a/azure/resourcegroup_deployment/ckan-compose/docker-compose.yml b/azure/resourcegroup_deployment/ckan-compose/docker-compose.yml
index c2d64e8..60a077f 100644
--- a/azure/resourcegroup_deployment/ckan-compose/docker-compose.yml
+++ b/azure/resourcegroup_deployment/ckan-compose/docker-compose.yml
@@ -74,7 +74,8 @@ services:
     environment:
       - PUID=1000
       - PGID=1000
-      - URL=${CKAN_VM_NAME}.${VM_DOMAIN}
+        #- URL=${CKAN_VM_NAME}.${VM_DOMAIN}
+      - URL=data.anaee.eu
       - SUBDOMAINS=
       - VALIDATION=http
       - EMAIL=admin@${CKAN_VM_NAME}.${VM_DOMAIN} #optional

can we close this one @etj ?