Origam HTML5 server is usually deployed behind a proxy server, either IIS or NGINX (in case of docker instance). At the moment the proxy server should be used to serve a custom favicon.
IIS
UrlRewrite needs to be installed.
Sample of the web.config, where instead of standard favicon.ico
is served favicon.png
from the customAssets
.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Origam.ServerCore.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
<system.webServer>
<rewrite>
<rules>
<rule name="favicon" enabled="true">
<match url="favicon.ico" />
<action type="Rewrite" url="./customAssets/favicon.png" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
NGINX
TBD.