For example, you can do the following to change configuration file to toml:
sudo systemctl edit --full frpc
Replace ${CREDENTIALS_DIRECTORY}/config with ${CREDENTIALS_DIRECTORY}/config_toml
| Git Clone URL: | https://aur.archlinux.org/frp-bin.git (read-only, click to copy) |
|---|---|
| Package Base: | frp-bin |
| Description: | A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. (Client) |
| Upstream URL: | https://github.com/fatedier/frp |
| Keywords: | fast frp nat proxy reverse |
| Licenses: | Apache |
| Conflicts: | frpc |
| Provides: | frpc |
| Submitter: | FirstAirBender |
| Maintainer: | FirstAirBender |
| Last Packager: | FirstAirBender |
| Votes: | 12 |
| Popularity: | 0.174271 |
| First Submitted: | 2021-07-01 04:22 (UTC) |
| Last Updated: | 2026-01-23 04:32 (UTC) |
For example, you can do the following to change configuration file to toml:
sudo systemctl edit --full frpc
Replace ${CREDENTIALS_DIRECTORY}/config with ${CREDENTIALS_DIRECTORY}/config_toml
@ystyle the default configuration points to the /etc/frp/frpc.ini file, which is now deprecated.
If this file doesn't exist for you, you can do the following:
sudo systemctl edit frpc
Replace ${CREDENTIALS_DIRECTORY}/config with ${CREDENTIALS_DIRECTORY}/config_toml
Where is this default configuration? When I start, I get an error [root.go:139] start frpc service for config file [/run/credentials/frpc.service/config]
Thanks for maintaining this usefull PKGBUILD. Hope that with enough votes this could be turned into an official Arch package.
Okay I see. Thanks @FirstAirBender
@thiru It's somewhat compatible, but after switching completely to the toml version, I can say that it is not quite the same. For one, toml seems to encode a type system into the configuration, and this is especially evident when making a distinction between integers and strings.
Sounds good, thanks. I can work around it but thought to mention it in case it throws off others. I'm actually using /etc/frp/frps.toml so I created a symlink named frps.ini pointing to it. That seems to work, but maybe just because my config is very simple. Not sure if ini is like a compatible subset of toml?
@thiru due to the new changes with the configuration file, frps.ini no longer exists in the frp releases. Because of this, pacman will rename /etc/frp/frps.ini to /etc/frp/frps.ini.pacsave after updating. In order to continue using the /etc/frp/frps.ini, you have to manually rename this .pacsave file, but note that every update, until the .ini file is finally deprecated you will always have to do this manually.
As I'm writing this, I have a workaround in mind, so I will update this package to reflect that.
The service fails to start without creating (and using) /etc/frp/frps.ini
The docs recommend using a frps.toml instead anyway so should this be reflected in frps.service?
Pinned Comments
HydroCarbon commented on 2024-07-11 13:41 (UTC) (edited on 2024-07-11 13:41 (UTC) by HydroCarbon)
For example, you can do the following to change configuration file to toml:
Replace
${CREDENTIALS_DIRECTORY}/configwith${CREDENTIALS_DIRECTORY}/config_toml