[GH-ISSUE #4340] [Feature Request] Live Reload #3424

Closed
opened 2026-05-05 14:12:27 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @SevensRequiem on GitHub (Jul 15, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4340

Describe the feature request

I run UDP/TCP apps behind FRP, and I often have to reload the entire FRPC when adding new clients, as such any connections to the server get reset, it would be beneficial if I could just save the config and have frpc detect and add the added proxies, or remove if removed.

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @SevensRequiem on GitHub (Jul 15, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4340 ### Describe the feature request I run UDP/TCP apps behind FRP, and I often have to reload the entire FRPC when adding new clients, as such any connections to the server get reset, it would be beneficial if I could just save the config and have frpc detect and add the added proxies, or remove if removed. ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:12:27 -06:00
Author
Owner
<!-- gh-comment-id:2230344623 --> @xqzr commented on GitHub (Jul 16, 2024): https://github.com/fatedier/frp?tab=readme-ov-file#hot-reloading-frpc-configuration
Author
Owner

@SevensRequiem commented on GitHub (Jul 16, 2024):

https://github.com/fatedier/frp?tab=readme-ov-file#hot-reloading-frpc-configuration

I tried that, it just returns

Jul 15 16:06:08 amp1 frpc[128019]: Get "http://127.0.0.1:7400/api/reload?strictConfig=true": dial tcp 127.0.0.1:7400: connect: connection refused
Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Main process exited, code=exited, status=1/FAILURE
Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Failed with result 'exit-code'.
Jul 15 16:06:14 amp1 systemd[1]: frpc.service: Scheduled restart job, restart counter is at 99.
Jul 15 16:06:14 amp1 systemd[1]: Stopped frpc.service - frp client.

<!-- gh-comment-id:2230970523 --> @SevensRequiem commented on GitHub (Jul 16, 2024): > https://github.com/fatedier/frp?tab=readme-ov-file#hot-reloading-frpc-configuration I tried that, it just returns ``` Jul 15 16:06:08 amp1 frpc[128019]: Get "http://127.0.0.1:7400/api/reload?strictConfig=true": dial tcp 127.0.0.1:7400: connect: connection refused Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Main process exited, code=exited, status=1/FAILURE Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Failed with result 'exit-code'. Jul 15 16:06:14 amp1 systemd[1]: frpc.service: Scheduled restart job, restart counter is at 99. Jul 15 16:06:14 amp1 systemd[1]: Stopped frpc.service - frp client. ```
Author
Owner

@xqzr commented on GitHub (Jul 17, 2024):

https://github.com/fatedier/frp?tab=readme-ov-file#hot-reloading-frpc-configuration

I tried that, it just returns

Jul 15 16:06:08 amp1 frpc[128019]: Get "http://127.0.0.1:7400/api/reload?strictConfig=true": dial tcp 127.0.0.1:7400: connect: connection refused
Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Main process exited, code=exited, status=1/FAILURE
Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Failed with result 'exit-code'.
Jul 15 16:06:14 amp1 systemd[1]: frpc.service: Scheduled restart job, restart counter is at 99.
Jul 15 16:06:14 amp1 systemd[1]: Stopped frpc.service - frp client.

b4d5d8c756/conf/frpc_full_example.toml (L53-L55)

<!-- gh-comment-id:2233148184 --> @xqzr commented on GitHub (Jul 17, 2024): > > https://github.com/fatedier/frp?tab=readme-ov-file#hot-reloading-frpc-configuration > > I tried that, it just returns > > ``` > Jul 15 16:06:08 amp1 frpc[128019]: Get "http://127.0.0.1:7400/api/reload?strictConfig=true": dial tcp 127.0.0.1:7400: connect: connection refused > Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Main process exited, code=exited, status=1/FAILURE > Jul 15 16:06:08 amp1 systemd[1]: frpc.service: Failed with result 'exit-code'. > Jul 15 16:06:14 amp1 systemd[1]: frpc.service: Scheduled restart job, restart counter is at 99. > Jul 15 16:06:14 amp1 systemd[1]: Stopped frpc.service - frp client. > ``` https://github.com/fatedier/frp/blob/b4d5d8c756bfa7c5f4fc73c3dff48678d0110fce/conf/frpc_full_example.toml#L53-L55
Author
Owner

@SevensRequiem commented on GitHub (Jul 17, 2024):

serverAddr = "x.x.x.x"
serverPort = 7000
transport.protocol = "quic"
auth.method = "token"
auth.token = "xxxx"
transport.dialServerKeepalive = 7200
transport.heartbeatInterval = 30
transport.heartbeatTimeout = 90
webServer.addr = "127.0.0.1"
webServer.port = 7400

Is my current config

<!-- gh-comment-id:2233617078 --> @SevensRequiem commented on GitHub (Jul 17, 2024): ``` serverAddr = "x.x.x.x" serverPort = 7000 transport.protocol = "quic" auth.method = "token" auth.token = "xxxx" transport.dialServerKeepalive = 7200 transport.heartbeatInterval = 30 transport.heartbeatTimeout = 90 webServer.addr = "127.0.0.1" webServer.port = 7400 ``` Is my current config
Author
Owner

@github-actions[bot] commented on GitHub (Aug 8, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:2274623241 --> @github-actions[bot] commented on GitHub (Aug 8, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#3424
No description provided.