Skip to content

Commit

Permalink
feat: create example config for easier running the project
Browse files Browse the repository at this point in the history
  • Loading branch information
anvari1313 committed Nov 17, 2023
1 parent e264876 commit b00fd1f
Showing 1 changed file with 109 additions and 0 deletions.
109 changes: 109 additions & 0 deletions config.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
default_vendor: snapp
http_port: 9999
logger:
level: debug
validator:
url: http://validator-lb
timeout: "5s"
vendors:
- allowed_access_types:
- pub
- sub
company: snapp
hash_id_map:
"0":
alphabet: ""
length: 15
salt: secret
"1":
alphabet: ""
length: 15
salt: secret
iss_entity_map:
"0": driver
"1": passenger
default: ""
iss_peer_map:
"0": passenger
"1": driver
default: ""
jwt:
iss_name: iss
signing_method: RS512
sub_name: sub
keys:
"0": |-
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyG4XpV9TpDfgWJF9TiIv
va4hNhDuqYMJO6iXLzr3y8oCvoB7zUK0EjtbLH+A3gr1kUvyZKDWT4qHTvU2Sshm
X+ttWGK34EhCvF3Lb18yxmVDSSK8JIcTaJjMqmyubxzamQnNoWazJ7ea9BIo2YGL
C9rgPbi1hihhdb07xPGUkJRqbWkI98xjDhKdMqiwW1hIRXm/apo++FjptvqvF84s
ynC5gWGFHiGNICRsLJBczLEAf2Atbafigq6/tovzMabnp2yRtr1ReEgioH1RO4gX
J7F4N5f6y/VWd8+sDOSxtS/HcnP/7g8/A54G2IbXxr+EiwOO/1F+pyMPKq7sGDSU
DwIDAQAB
-----END PUBLIC KEY-----
"1": |-
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5SeRfOdTyvQZ7N9ahFHl
+J05r7e9fgOQ2cpOtnnsIjAjCt1dF7/NkqVifEaxABRBGG9iXIw//G4hi0TqoKqK
aoSHMGf6q9pSRLGyB8FatxZf2RBTgrXYqVvpasbnB1ZNv858yTpRjV9NzJXYHLp8
8Hbd/yYTR6Q7ajs11/SMLGO7KBELsI1pBz7UW/fngJ2pRmd+RkG+EcGrOIZ27TkI
Xjtog6bgfmtV9FWxSVdKACOY0OmW+g7jIMik2eZTYG3kgCmW2odu3zRoUa7l9VwN
YMuhTePaIWwOifzRQt8HDsAOpzqJuLCoYX7HmBfpGAnwu4BuTZgXVwpvPNb+KlgS
pQIDAQAB
-----END PUBLIC KEY-----
topics:
- accesses:
"0": "1"
"1": "1"
template: ^{{IssToEntity .iss}}-event-{{ EncodeMD5 (DecodeHashID .sub .iss) }}$
type: cab_event
- accesses:
"0": "2"
"1": "-1"
template: ^{{.company}}/driver/{{.sub}}/location$
type: driver_location
- accesses:
"0": "2"
"1": "2"
template: ^{{.company}}/passenger/{{.sub}}/location$
type: passenger_location
- accesses:
"0": "1"
"1": "1"
template: ^{{.company}}/{{IssToEntity .iss}}/{{.sub}}/superapp$
type: superapp_event
- accesses:
"0": "-1"
"1": "-1"
template: ^bucks$
type: box_event
- accesses:
"0": "1"
"1": "1"
template: ^{{.company}}/{{IssToEntity .iss}}/{{.sub}}/{{IssToPeer .iss}}-location$
type: shared_location
- accesses:
"0": "1"
"1": "1"
template: ^{{.company}}/{{IssToEntity .iss}}/{{.sub}}/chat$
type: chat
- accesses:
"0": "2"
"1": "2"
template: ^shared/{{.company}}/{{IssToEntity .iss}}/{{.sub}}/call/send$
type: general_call_entry
- accesses:
"0": "2"
"1": "2"
template: ^{{.company}}/{{IssToEntity .iss}}/{{.sub}}/call/[a-zA-Z0-9-_]+/send$
type: node_call_entry
- accesses:
"0": "1"
"1": "1"
template: ^{{.company}}/{{IssToEntity .iss}}/{{.sub}}/call/receive$
type: call_outgoing
tracer:
enabled: false
endpoint: 127.0.0.1:4317
ratio: 0.1

0 comments on commit b00fd1f

Please sign in to comment.