Fix client base path handling via explicit meta
This commit is contained in:
3
IIS.md
3
IIS.md
@@ -12,9 +12,10 @@
|
||||
- Set environment variables in web.config or IIS config:
|
||||
- `ASPNETCORE_ENVIRONMENT=Production`
|
||||
- `ADMIN_PASSWORD=<your-secret>`
|
||||
- `BasePath=/vote` (only if the site is under a subfolder; omit for root)
|
||||
- `BasePath=/picknplay` (only if the site is under a subfolder; omit for root)
|
||||
- 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).
|
||||
|
||||
## Permissions
|
||||
- Grant modify rights to the app pool identity on `App_Data` (DB file + wal).
|
||||
|
||||
Reference in New Issue
Block a user