#
Change the sales channel domain
#
hostware domain
To change the sales channel domain, simply select the sales channel in the sidebar on the bottom left.
You can now enter and save your new domain.
#
nginx config
You need to change or add the new domain to your nginx (webserver) config like below:
Open the file /etc/nginx/sites-enabled/hostware-nginx.conf
on your hostware VPS and change the section on the top which says "server_name". Save the file and restart nginx using systemctl restart nginx
.
#
Generate SSL
To generate a free lets encrypt ssl cert for the new domain, replace the variable "{HW_LICENSE_DOMAIN}" with your new domain and "{HW_LICENSE_EMAIL}
" with your email, which will be used to alert you when the cert will expire soon.
certbot run -n --nginx --agree-tos -d {HW_LICENSE_DOMAIN} -m {HW_LICENSE_EMAIL} --redirect --deploy-hook "systemctl restart nginx"
You should now be able to access the sales channel on the new domain. If you have issues, please contat us.