Skip to content

Commit

Permalink
fix gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 7, 2024
1 parent d28d07a commit ed49b16
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.DS_Store
centrifugo
config.yaml
config.json
config.json.*
config.*.json
/config.yaml
/config.json
/config.json.*
/config.*.json
BUILDS
PACKAGES
FlameGraph
Expand Down
46 changes: 46 additions & 0 deletions internal/config/testdata/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"tls": {
"enabled": true
},
"client": {
"allowed_origins": ["http://localhost:3000"],
"token": {
"enabled": true
},
"ping_interval": "12s"
},
"channel": {
"presence": true,
"namespaces": [
{
"name": "ns1",
"presence": true
},
{
"name": "ns2",
"presence": false
}
]
},
"proxies": [
{
"name": "ppp"
}
],
"consumers": [
{
"name": "kafka",
"enabled": true,
"type": "kafka",
"kafka": {
"brokers": ["localhost:9092"],
"topics": ["postgres.public.chat_cdc"],
"consumer_group": "centrifugo",
"tls": {
"enabled": true,
"cert_pem": "xxx"
}
}
}
]
}
31 changes: 31 additions & 0 deletions internal/config/testdata/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
tls:
enabled: true
client:
allowed_origins:
- http://localhost:3000
token:
enabled: true
ping_interval: 12s
channel:
presence: true
namespaces:
- name: ns1
presence: true
- name: ns2
presence: false
proxies:
- name: ppp
consumers:
- name: kafka
enabled: true
type: kafka
kafka:
brokers:
- localhost:9092
topics:
- postgres.public.chat_cdc
consumer_group: centrifugo
tls:
enabled: true
cert_pem: xxx

0 comments on commit ed49b16

Please sign in to comment.