[GH-ISSUE #4096] frpc - unmarshal ProxyConfig error: json: unknown field "locations" #3229

Closed
opened 2026-05-05 14:05:11 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @jikunchong on GitHub (Mar 22, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4096

Bug Description

I expect to use https://mydomain.com/joplin to access the application.
ref docs:

but,

sudo docker logs frpc-mydomain

unmarshal ProxyConfig error: json: unknown field "locations"

frpc Version

docker: fatedier/frpc:v0.56.0

frps Version

docker: fatedier/frps:v0.56.0

System Architecture

linux/arm64

Configurations

# frpc.toml
[[proxies]]
name = "my-joplin"
type = "https"
#subdomain = "joplin"
customDomains = ["mydomain.com"]
locations = ["/joplin"]
[proxies.plugin]
type = "https2http"
localAddr = "127.0.0.1:8223"
crtPath = "/data/cert/mydomain.com/server.crt"
keyPath = "/data/cert/mydomain.com/server.key"
hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"

Logs

unmarshal ProxyConfig error: json: unknown field "locations"

Steps to reproduce

  1. nano frpc.toml
  2. sudo docker run -d --name frpc-mydomain ...
  3. sudo docker logs frpc-mydomain

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @jikunchong on GitHub (Mar 22, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4096 ### Bug Description I expect to use https://mydomain.com/joplin to access the application. ref docs: - https://github.com/fatedier/frp?tab=readme-ov-file#enable-https-for-a-local-https-service - https://github.com/fatedier/frp?tab=readme-ov-file#url-routing but, ```shell sudo docker logs frpc-mydomain unmarshal ProxyConfig error: json: unknown field "locations" ``` ### frpc Version docker: fatedier/frpc:v0.56.0 ### frps Version docker: fatedier/frps:v0.56.0 ### System Architecture linux/arm64 ### Configurations ```toml # frpc.toml [[proxies]] name = "my-joplin" type = "https" #subdomain = "joplin" customDomains = ["mydomain.com"] locations = ["/joplin"] [proxies.plugin] type = "https2http" localAddr = "127.0.0.1:8223" crtPath = "/data/cert/mydomain.com/server.crt" keyPath = "/data/cert/mydomain.com/server.key" hostHeaderRewrite = "127.0.0.1" requestHeaders.set.x-from-where = "frp" ``` ### Logs unmarshal ProxyConfig error: json: unknown field "locations" ### Steps to reproduce 1. nano frpc.toml 2. sudo docker run -d --name frpc-mydomain ... 3. sudo docker logs frpc-mydomain ### Affected area - [X] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Mar 22, 2024):

This is for http, not https.

<!-- gh-comment-id:2014449765 --> @fatedier commented on GitHub (Mar 22, 2024): This is for http, not https.
Author
Owner

@jikunchong commented on GitHub (Mar 22, 2024):

This is for http, not https.

Will HTTPS be supported in the future?

<!-- gh-comment-id:2014458425 --> @jikunchong commented on GitHub (Mar 22, 2024): > This is for http, not https. Will HTTPS be supported in the future?
Author
Owner

@fatedier commented on GitHub (Mar 22, 2024):

Currently, no.

<!-- gh-comment-id:2014463612 --> @fatedier commented on GitHub (Mar 22, 2024): Currently, no.
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#3229
No description provided.