[GH-ISSUE #4775] [Feature Request] yaml config should ignore field start with dot to support yaml merge #3769

Closed
opened 2026-05-05 14:24:57 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @wenerme on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4775

Describe the feature request

to help reuse some config like

.common: &common
  type: stcp
  secretKey: "{{.Envs.FRPC_SECRET_KEY}}"
  localIp: 127.0.0.1
  allowUsers: [ '*' ]
  transport:
    useEncryption: true
    useCompression: true

proxies:
- name: ssh
  localPort: 22
  <<: *common

- name: pg
  localPort: 5432
  <<: *common

- name: web
  localPort: 80
  <<: *common

but this is not supported by frp, this is very common pattern for docker compose yaml, github action yaml etc.

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 @wenerme on GitHub (Apr 29, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4775 ### Describe the feature request to help reuse some config like ```yaml .common: &common type: stcp secretKey: "{{.Envs.FRPC_SECRET_KEY}}" localIp: 127.0.0.1 allowUsers: [ '*' ] transport: useEncryption: true useCompression: true proxies: - name: ssh localPort: 22 <<: *common - name: pg localPort: 5432 <<: *common - name: web localPort: 80 <<: *common ``` but this is not supported by frp, this is very common pattern for docker compose yaml, github action yaml etc. ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (May 19, 2025):

I found that the current version does support it, but you need to add the --strict-config=false startup parameter when launching.

<!-- gh-comment-id:2891188109 --> @fatedier commented on GitHub (May 19, 2025): I found that the current version does support it, but you need to add the `--strict-config=false` startup parameter when launching.
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#3769
No description provided.