Add trusted forwarded-header config and tests
This commit is contained in:
3
IIS.md
3
IIS.md
@@ -13,6 +13,9 @@
|
||||
- `ASPNETCORE_ENVIRONMENT=Production`
|
||||
- `ADMIN_PASSWORD=<your-secret>`
|
||||
- `BasePath=/picknplay` (only if the site is under a subfolder; omit for root)
|
||||
- Configure trusted reverse proxies/networks for forwarded headers (do not trust all sources):
|
||||
- `ForwardedHeaders__KnownProxies__0=10.0.0.10`
|
||||
- `ForwardedHeaders__KnownNetworks__0=10.0.0.0/24`
|
||||
- Optional: enable stdout logging in `web.config` during troubleshooting only; disable afterward.
|
||||
- Data protection keys are persisted to `App_Data/keys`; ensure this folder is deployed and writable so auth cookies stay valid across app pool recycles.
|
||||
- Frontend base path: set `<meta name="app-base" content="/picknplay">` in `wwwroot/index.html` for production so API calls include the subpath (keep blank for local/root).
|
||||
|
||||
Reference in New Issue
Block a user