Skip to content

feat: support custom upstream headers#40

Merged
Siumauricio merged 2 commits into
Dokploy:mainfrom
kdcokenny:feature/custom-api-headers
May 13, 2026
Merged

feat: support custom upstream headers#40
Siumauricio merged 2 commits into
Dokploy:mainfrom
kdcokenny:feature/custom-api-headers

Conversation

@kdcokenny
Copy link
Copy Markdown
Contributor

@kdcokenny kdcokenny commented May 13, 2026

Summary

  • add DOKPLOY_CUSTOM_HEADERS for optional upstream request headers
  • merge custom headers into the shared Dokploy API client while preserving x-api-key, Content-Type, and Accept
  • document Cloudflare Access service-token usage and add targeted config tests

Verification

  • pnpm test -- src/utils/clientConfig.test.ts
  • pnpm lint
  • pnpm type-check
  • pnpm build

Manual testing: Verified successfully with a Cloudflare Access setup using DOKPLOY_CUSTOM_HEADERS='{"CF-Access-Client-Id":"","CF-Access-Client-Secret":""}'.

@kdcokenny kdcokenny marked this pull request as ready for review May 13, 2026 01:45
@kdcokenny
Copy link
Copy Markdown
Contributor Author

@Siumauricio @andradehenrique Would love a quick review if any of y'all have time. Super simple change that makes a huge difference in my workflow and I'm sure many others!

@Siumauricio
Copy link
Copy Markdown
Contributor

Nice, approved

@Siumauricio Siumauricio merged commit 0a1eed9 into Dokploy:main May 13, 2026
@kdcokenny kdcokenny deleted the feature/custom-api-headers branch May 13, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants