Skip to content

flags should override config #16

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

Open
sedlund opened this issue Mar 21, 2025 · 0 comments
Open

flags should override config #16

sedlund opened this issue Mar 21, 2025 · 0 comments

Comments

@sedlund
Copy link

sedlund commented Mar 21, 2025

My Syncthing instance is configured with the startup flag --gui-address to listen on Tailscale, overriding the config file setting that specifies 127.0.0.1.

I provide the configuration file to stc for the API key and also expect to override --target using a flag that specifies the Tailscale IP.

However, it does not respect the flag override.

home-manager:

home.shellAliases.stc = "${lib.getExe pkgs.stc-cli} -homedir ${config.xdg.stateHome}/syncthing -target http://${config.services.syncthing.guiAddress}";

equivelant:

alias stc="stc --homedir ~/.local/state/syncthing --target http://$(tailscale ip -4):8384"
 stc
2025/03/21 20:58:39 stc.go:424: github.com/tenox7/stc/api.GetConfig (api.go:106): Get "http://127.0.0.1:8384/rest/config": dial tcp 127.0.0.1:8384: connect: connection refused

Very cool project, thanks very much! 🍻

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