danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
258 stars 71 forks source link

adding more more than one domain access #101

Closed Evert-vh closed 4 years ago

Evert-vh commented 4 years ago

Hi there

I absolutely loved the script and was easy to install and get running, needed to make a few tweaks on my pfsense firewall to get access but now that everyting is running its great,

is there a way to add more than 1 domain to the install and with caddy (not familiar with caddy) the other domain can only be http auth like certbot will do so is it possible to do this afterwards and grant access from a secondary domain? and if so how will that be possible?

Regards

danb35 commented 4 years ago

I think you may have posted on the FreeNAS forum thread and gotten an answer there. If not, this should be possible--you'd need to add the second domain to the trusted domains configuration in Nextcloud (you can see how it's done from the command line near the end of the script, or you can edit it in to Nextcloud's config.php), and you'd need to adjust the Caddyfile to recognize the second domain.