我有一种情况,我需要在IIS后面设置GitLab。
GitLab实例在局域网内工作得很好,但试图通过IIS反向代理进行设置是行不通的。
无论我尝试什么,我都会得到502 / Bad Gateway。
任何想法如何解决这个问题?
可以错误地指定docker的ip地址。 这是我的工作web.config:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <clear /> <rule name="Let's encypt" stopProcessing="true"> <match url="^\.well-known.*$" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> <action type="None" /> </rule> <rule name="gitlab forwarding" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> <serverVariables> <set name="HTTP_X_FORWARDED_HOST" value="your.public.domain" /> </serverVariables> <action type="Rewrite" url="http://192.168.99.100:10080/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>