Skip to content

Commit 45d6e0a

Browse files
committed
Add note about 302 redirects.
1 parent 83f71d6 commit 45d6e0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MyApp/_pages/kamal-deploy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ Once you make these changes, commit and push to your repository to trigger the G
7878

7979
Kamal will deploy the required services including Docker and Kamal Proxy if you server doesn't already have them installed.
8080

81+
:::info
82+
When using ASP.NET Core applications with Kamal-Proxy, ensure your application is running with the environment variable `ASPNETCORE_FORWARDEDHEADERS_ENABLED` set to `true`.
83+
The template has this by default, but if you are getting errors with 302 redirects, ensure this is set.
84+
:::
85+
8186
The authentication between GitHub Container Registry (ghcr.io) and your server is handled by the GitHub Actions workflow, the `deploy.yml` and [Kamal Secrets](https://kamal-deploy.org/docs/configuration/environment-variables/#secrets).
8287

8388
:::info

0 commit comments

Comments
 (0)