How to redirect or add domain to roundcube webmaill http address?

According to the git convo. I need to add a folder called “includes” in “/etc/nginx/conf.d” ? Then add a file to redirect from base domain to domain/mail, is this correct? Do I need to add include statement in any other file or is this automatically done? I tried this option with no success. I restarted and did a nginx -t check and both were fine but no redirect.

I don’t understand the managment/web_update.py file. I’m not sure how to use it for my needs. I need to pass something like config file, assuming that would be the nginx file for which I want to add to the server. Which function do I use or a example would be great?

I went with a third option, which is probaly the worst option. I edited the local.conf file and edit the 443 for my base domain and comment out these lines.

 #root /home/user-data/www/default;
 #index index.html index.htm;

and added this line. I restarted and it works. for both example.com and https://example.com

rewrite ^/$ /mail redirect;