Wildcard Alias added, but no https
-
I've added a wildcard alias to the custom app install for the app that I am packaging. It works, entering an address like test2.[app.domain.com] resolves to the app. However, there is no valid security certificate for it.
I've restarted the app. Is there another step that I need to do? I didn't see anything in the docs.
Also, is it possible to setup a wildcard alias during app installation? I'd prefer not to ask the user to do this, if possible.
-
Oh, my domain is setup with a DNS provider of "Wildcard" domain but the "Let's Encrypt Prod" certificate provider. I probably need to switch that around to a programmatic provider instead.
@sfeldkamp mine works with those settings
Did you set up AAAA as well as A records ?
-
I switched to my domain registrar as the provider, connected with an API key, regenerated the certs, and then synced DNS records. Everything seems to be working as I need it to.
Can anyone answer my second question... Is there a way to setup a domain alias during app installation so the user doesn't have to configure it manually?
-
Thank you, I see that here: https://docs.cloudron.io/api.html#tag/Apps/operation/installApp.
I want to set this value automatically during App Installation. Is there a way to do that using either the CloudronManifest.json file or the Cloudron CLI?
-
Hello @sfeldkamp
You can do this with the cloudron cli or the API.
API example based on the Cloudron LAMP app:
export ACCESS_TOKEN="YOUR_CLOUDRON_TOKEN" export CLOUDRON_DOMAIN="my.DOMAIN.TLD" curl "https://${CLOUDRON_DOMAIN}/api/v1/apps?access_token=${ACCESS_TOKEN}" \ -H 'content-type: application/json' \ --data-raw '{"appStoreId":"lamp.cloudronapp.php74@5.0.1","subdomain":"domain1","domain":"cloudron.dev","secondaryDomains":{},"aliasDomains":[{"domain": "cloudron.dev", "subdomain": "domain2"}, {"domain": "cloudron.dev", "subdomain": "*.wildcarddomain"}],"ports":{},"accessRestriction":null}'CLI example based on the Cloudron LAMP app:
cloudron install --appstore-id "lamp.cloudronapp.php74@5.0.1" --location "domain1" --alias-domains "domain2,*.wildcarddomain"CLI example for a custom app:
Note: I am using theyqtool to get theidandversionfrom theCloudronManifest.jsonsince this is how I also build the docker images for convenience.
Info: You need to add"multiDomain": true,to theCloudronManifest.jsonto enable domain aliases, see: https://docs.cloudron.io/packaging/manifest/#multidomaincloudron install --location $(yq -r .id CloudronManifest.json) --image dr.cloudron.dev/$(yq -r .id CloudronManifest.json):$(yq -r .version CloudronManifest.json) --alias-domains "domain2,*.wildcarddomain"