[PR #4855] [CLOSED] feat(config): support loading configuration from URL #5061

Closed
opened 2026-05-05 14:53:57 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/4855
Author: @jjhesk
Created: 6/27/2025
Status: Closed

Base: devHead: dev


📝 Commits (1)

  • 058fe0b feat(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 to os.ReadFile in 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.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/4855 **Author:** [@jjhesk](https://github.com/jjhesk) **Created:** 6/27/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`058fe0b`](https://github.com/fatedier/frp/commit/058fe0b6e52a493969ad951ce40b73f439f381ff) feat(config): support loading configuration from URL ### 📊 Changes **2 files changed** (+38 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `pkg/config/legacy/value.go` (+19 -1) 📝 `pkg/config/load.go` (+19 -2) </details> ### 📄 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 to `os.ReadFile` in the configuration loading logic, providing greater flexibility for deploying and managing frp configurations. ### WHY <!-- author to complete --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:53:57 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#5061
No description provided.