geosolutions-it / C195-azure-workspace

1 stars 2 forks source link

hostname different from VM name #48

Closed etj closed 2 years ago

etj commented 2 years ago

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 2 years ago

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
randomorder commented 2 years ago

can we close this one @etj ?