mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #4855] [CLOSED] feat(config): support loading configuration from URL #5061
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5061
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/4855
Author: @jjhesk
Created: 6/27/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
058fe0bfeat(config): support loading configuration from URL📊 Changes
2 files changed (+38 additions, -3 deletions)
View changed files
📝
pkg/config/legacy/value.go(+19 -1)📝
pkg/config/load.go(+19 -2)📄 Description
https://github.com/fatedier/frp/issues/4853
This commit introduces the capability to load configuration files directly from an HTTP or HTTPS URL, in addition to local file paths.
A new helper function,
readBytesFromPath, is implemented to handle both remote and local file retrieval. This function replaces direct calls toos.ReadFilein the configuration loading logic, providing greater flexibility for deploying and managing frp configurations.WHY
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.