Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration file support #39

Open
Tracked by #41
nodece opened this issue Nov 28, 2021 · 3 comments
Open
Tracked by #41

Add configuration file support #39

nodece opened this issue Nov 28, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@nodece
Copy link
Member

nodece commented Nov 28, 2021

Summary

Currently, the casbin-mesh doesn't support the configuration file, we should support this which is important, I create a draft for this:

name:

data-dir:

log:
  level: info
  
bind-address:
  - 192.168.1.10:4001
  - 10.168.1.10:4002

advertise-address: 192.168.1.10:8080

endpoint:
  tls:
    enable: false
    ca:
    key:
    cert:
  authorization:
    enable: false
  authentication:
    enable: false
    type: basic
    params:
      username: root
      password: root

peer:
  tls:
    enable: false
    ca:
    key:
    cert:
  snap-threshol: 10
  snap-interval: 10
  leader-lease-timeout: 0
  heart-beat-timeout: 0
  election-timeout: 0
  apply-timeout: 0
  open-timeout: 0
  wait-leader: false
  shutdown-on-remove: false
  compression-size: 10
  compression-batch: 20

pprof:
  enable: false
  cpu-profile:
  mem-profile:
@casbin-bot
Copy link
Member

@WenyXu @nodece

@casbin-bot casbin-bot added the enhancement New feature or request label Nov 28, 2021
@devajithvs
Copy link

Can I work on this issue?

If yes, it'd be great if I can have the following question(s) answered

  1. Do you recommend using an external package like ff to parse the configuration file or do you recommend writing code specifically for our use-case?
  2. I think commandline arguments must have the highest priority, please correct me if I am wrong.

@WenyXu
Copy link
Collaborator

WenyXu commented Jan 4, 2022

Can I work on this issue?

If yes, it'd be great if I can have the following question(s) answered

  1. Do you recommend using an external package like ff to parse the configuration file or do you recommend writing code specifically for our use-case?
  2. I think commandline arguments must have the highest priority, please correct me if I am wrong.

Hi, there. You can work on this absolutely, and check this repo which is also helpful.

@WenyXu WenyXu mentioned this issue May 12, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants