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

Support additional locations for config file #9

Closed
Ulexus opened this issue Mar 28, 2020 · 0 comments · Fixed by #10
Closed

Support additional locations for config file #9

Ulexus opened this issue Mar 28, 2020 · 0 comments · Fixed by #10

Comments

@Ulexus
Copy link
Contributor

Ulexus commented Mar 28, 2020

We should support additional standard locations for the config file, such as:

  • XDG_CONFIG_HOME/apiban/config.json
  • /etc/apiban/config.json
  • ./config.json
  • user-specified location via commandline option
Ulexus added a commit to CyCoreSystems/apiban that referenced this issue Mar 28, 2020
This adds a few standard locations for the configuration file:
  - `os.UserConfigDir()`/apiban/config.json
  - /etc/apiban/config.json
  - ./config.json
  - user-specified config location

Fixes palner#9

Signed-off-by: Seán C McCord <ulexus@gmail.com>
Ulexus added a commit to CyCoreSystems/apiban that referenced this issue Mar 28, 2020
This adds a few standard locations for the configuration file:
  - `os.UserConfigDir()`/apiban/config.json
  - /etc/apiban/config.json
  - ./config.json
  - user-specified config location

Also breaks out iptables initialization for clarity of main flow

Fixes palner#9

Signed-off-by: Seán C McCord <ulexus@gmail.com>
Ulexus added a commit to CyCoreSystems/apiban that referenced this issue Mar 28, 2020
This adds a few standard locations for the configuration file:
  - `os.UserConfigDir()`/apiban/config.json
  - /etc/apiban/config.json
  - ./config.json
  - user-specified config location

Also breaks out iptables initialization for clarity of main flow

Fixes palner#9

Signed-off-by: Seán C McCord <ulexus@gmail.com>
Ulexus added a commit to CyCoreSystems/apiban that referenced this issue Mar 28, 2020
This adds a few standard locations for the configuration file:
  - `os.UserConfigDir()`/apiban/config.json
  - /etc/apiban/config.json
  - ./config.json
  - user-specified config location

Also breaks out iptables initialization for clarity of main flow and
allows alternative log locations.

Fixes palner#9

Signed-off-by: Seán C McCord <ulexus@gmail.com>
Ulexus added a commit to CyCoreSystems/apiban that referenced this issue Mar 28, 2020
This adds a few standard locations for the configuration file:
  - `os.UserConfigDir()`/apiban/config.json
  - /etc/apiban/config.json
  - ./config.json
  - user-specified config location

Also breaks out iptables initialization for clarity of main flow and
allows alternative log locations.

Fixes palner#9

Signed-off-by: Seán C McCord <ulexus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant