Skip to content

Commit 8f52738

Browse files
authored
Merge pull request #1058 from DuendeSoftware/mb/contentrootpath
Document `ContentRootPath` details and example for license key placement
2 parents 7761729 + 84496e7 commit 8f52738

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

astro/src/content/docs/general/licensing.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,23 @@ Duende products like IdentityServer and the BFF Security Framework look for a fi
264264
[ContentRootPath](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.ihostenvironment.contentrootpath?#microsoft-extensions-hosting-ihostenvironment-contentrootpath)
265265
of your application. If present, the content of the file will be used as the license key.
266266
267+
By default, `ContentRootPath` is the directory that contains the application's `.csproj`
268+
file during development, and the application's base directory in published deployments.
269+
Place the license key file there:
270+
271+
```text
272+
MyIdentityServer/
273+
├── Duende_License.key ← place license here
274+
├── MyIdentityServer.csproj
275+
├── Program.cs
276+
├── appsettings.json
277+
└── ...
278+
```
279+
280+
:::tip
281+
To verify your `ContentRootPath` at runtime, inspect `builder.Environment.ContentRootPath`.
282+
:::
283+
267284
### Startup
268285

269286
If you prefer to load the license key programmatically, you can do so in your startup

0 commit comments

Comments
 (0)