aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-02 19:07:27 +0800
committercrupest <crupest@outlook.com>2020-06-02 19:07:27 +0800
commit3abd2446df84eeae99d27d0fc0b688702f5e77f8 (patch)
treec74ac2e3f7e124d132cb85fdc20c5632e1222852 /Dockerfile
parent8473ce1e9f3495630f7382957a5a1cfb567e95ea (diff)
downloadtimeline-3abd2446df84eeae99d27d0fc0b688702f5e77f8.tar.gz
timeline-3abd2446df84eeae99d27d0fc0b688702f5e77f8.tar.bz2
timeline-3abd2446df84eeae99d27d0fc0b688702f5e77f8.zip
fix: not recognize forwarded https protocal.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 49d938df..5be1d333 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,5 +5,6 @@ RUN dotnet publish Timeline/Timeline.csproj --configuration Release --output ./T
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
WORKDIR /app
+ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED true
COPY --from=build /timeline-app/Timeline/publish .
ENTRYPOINT ["dotnet", "Timeline.dll"]