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

Req: -c and --config to provide path to config.json #33

Open
bobpaul opened this issue Feb 16, 2020 · 1 comment
Open

Req: -c and --config to provide path to config.json #33

bobpaul opened this issue Feb 16, 2020 · 1 comment

Comments

@bobpaul
Copy link

bobpaul commented Feb 16, 2020

I like to make a package for this for archlinux and I have 2 goals:

  • the installed path should be immutable with a config file in /etc
  • a systemd template making it easier to run multiple bridges on the same server (each instance will have its own config, registration, and hangups token). Eg, an instance would launch via [email protected] and point to configs/tokens specific for the FOO user.

To achieve these goals without a lot of weirdness in my package, I need the config path to come from the command line (it can default to ./config.json if the option isn't provided). matrix-appservice-irc has a config provided by the commandline, but I'm not a strong javascript developer and it's not clear to me how this is enabled.


Ideally, I'd also have a -t, --token argument to provide the path to the refresh token rather than using ~/.cache/hangups/refresh_token.txt. But I can set HOME in the systemd service to move that.

@bobpaul
Copy link
Author

bobpaul commented Feb 16, 2020

Looks like I'll need to move the room-store.db and user-store.db, too.

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

No branches or pull requests

1 participant