In Typoscript constant while defining the base url, we can check, if the site url is http or https. So if the site url is https, we can set the https for the baseurl
To change the file link icons form the content element "File Links", (if you are using css_styled_content) by using Typoscript, we have to give the path to our custom folder, where our custom icons...