Skip to content

Commit e2fd7d7

Browse files
authored
Merge pull request #52 from kellnr/feat/add-setting-to-set-user-agent
feat: add setting to configure user-agent
2 parents b359f9b + bd1b749 commit e2fd7d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/views/DocumentationV6View.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@ import ConfigGrid from "../components/elements/ConfigGrid.vue";
571571
<ConfigCard title="Request Timeout" toml="[proxy] request_timeout_seconds"
572572
env-var="KELLNR_PROXY__REQUEST_TIMEOUT_SECONDS" default-value="30"
573573
description="Request timeout in seconds for upstream downloads." />
574+
<ConfigCard title="User Agent" toml="[proxy] user_agent" env-var="KELLNR_PROXY__USER_AGENT"
575+
default-value="kellnr.io/kellnr"
576+
description="User-agent sent with requests to crates.io. crates.io's data-access policy asks for a user-agent that identifies the application and a way to get in contact, e.g. 'kellnr.io/kellnr (contact@example.com)'." />
574577
</ConfigGrid>
575578

576579
<h5 class="mt-4 mb-3">Documentation</h5>

0 commit comments

Comments
 (0)