From e5c6f338cb917d830ba6015301fafe77d74fff49 Mon Sep 17 00:00:00 2001 From: Marlon Regenhardt Date: Mon, 27 May 2024 13:14:27 +0200 Subject: [PATCH] docs: Add custom host path to documentation Closes #143 --- docs/docs/configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/docs/configuration.md b/docs/docs/configuration.md index fa25495f..1191e06f 100644 --- a/docs/docs/configuration.md +++ b/docs/docs/configuration.md @@ -20,6 +20,18 @@ Users will now have to provide the API key to push packages: dotnet nuget push -s http://localhost:5000/v3/index.json -k NUGET-SERVER-API-KEY package.1.0.0.nupkg ``` +## Hosting on a different path + +By default, BaGetter is hosted at the root path `/` (e.g. `bagetter.your-company.org`). You can host BaGetter at a different path (e.g. `bagetter.your-company.org/bagetter`) by setting the `PathBase` field: + +```json +{ + ... + "PathBase": "/bagetter", + ... +} +``` + ## Enable read-through caching Read-through caching lets you index packages from an upstream source. You can use read-through