Hi all.
I would like to know if anyone has experience with this configuration?
My configuration, which unfortunately does not work.
Basic Auth enabled in IIS/OH3
Users with same login/password exists in Windows/OH3
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow_Credentials" value="true" />
<add name="Access-Control-Allow-Headers" value="Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range" />
<add name="Access-Control-Allow-Methods" value="GET,POST,OPTIONS,PUT,DELETE,PATCH" />
<add name="Set-Cookie" value="X-OPENHAB-AUTH-HEADER=true;path=/;Secure" />
<!--<add name="Authorization" value="" />-->
</customHeaders>
</httpProtocol>
<rewrite>
<outboundRules>
<rule name="Reverse Proxy" preCondition="Response Is Json" enabled="false" stopProcessing="false">
<match filterByTags="None" pattern="http://localhost:8080/(.*)" />
<action type="Rewrite" value="https://oh3.mydomain.com/{R:1}" />
</rule>
<preConditions>
<preCondition name="Response Is Json">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^application/json" />
</preCondition>
</preConditions>
</outboundRules>
<rules>
<rule name="Reverse Proxy" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_URI}" pattern="^/.well-known/acme-challenge" negate="true" />
</conditions>
<action type="Rewrite" url="http://localhost:8080/{R:1}" appendQueryString="true" />
<serverVariables>
<set name="HTTP_X_FORWARDED_HOST" value="{HTTP_HOST}" />
<set name="HTTP_X_FORWARDED_PROTO" value="https" />
<!--<set name="HTTP_X-Real-IP" value="{HTTP_X_FORWARDED_FOR}" />-->
</serverVariables>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
What am I doing wrong?