8000 Overhaul anubis.freebsd by pswilde · Pull Request #427 · TecharoHQ/anubis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Overhaul anubis.freebsd #427

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
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Overhaul anubis.freebsd #427

wants to merge 5 commits into from

Conversation

pswilde
Copy link
Contributor
@pswilde pswilde commented May 2, 2025

Some changes here to reflect the discussion in pull request 274 regarding the anubis_env, anubis_env_file and anubis_args variables. At the risk of improving personal choices in configuration with a minor amount more complexity, this new script now allows for the use of all three of these, together, with no interference between them all i.e.

  • if anubis_env_file is set, environment variables will be taken from this file
  • if anubis_env is set, environment variables will be taken from this string of variables, and override matching variables set in anubis_env_file
  • if anubis_args is set, runtime parameters will be taken from this string and override matching ones in both anubis_env_file and anubis_env

Thanks to @dlangille for the advice with this.

Checklist:

  • Added a description of the changes to the [Unreleased] section of docs/docs/CHANGELOG.md
  • Added test cases to the relevant parts of the codebase
  • Ran integration tests npm run test:integration (unsupported on Windows, please use WSL)

pswilde added 2 commits May 2, 2025 21:50
Some changes here to reflect the discussion in pull request 274 regarding the `anubis_env`, `anubis_env_file` and `anubis_args` variables.
At the risk of improving personal choices in configuration with a minor amount more complexity, this new script now allows for the use of all three of these, together, with no interference between them all 
i.e. 
- if `anubis_env_file` is set, environment variables will be taken from this file
- if `anubis_env` is set, environment variables will be taken from this string of variables, and override matching variables set in `anubis_env_file`
- if `anubis_args` is set, runtime parameters will be taken from this string and override matching ones in both `anubis_env_file` and `anubis_env`

Thanks to @dlangille for the advice with this.

Signed-off-by: Paul Wilde <31094984+pswilde@users.noreply.github.com>
Signed-off-by: Paul Wilde <31094984+pswilde@users.noreply.github.com>
@pswilde pswilde mentioned this pull request May 2, 2025
3 tasks
pswilde added 2 commits May 2, 2025 21:59
Signed-off-by: Paul Wilde <31094984+pswilde@users.noreply.github.com>
Signed-off-by: Paul Wilde <31094984+pswilde@users.noreply.github.com>
@dch
Copy link
dch commented May 4, 2025

Last I checked things like env vars don’t get correctly passed through when using daemon, which is why the rc script in ports uses anubis_args instead of the more obvious anubis_flags.

if these changes above work I should adopt them in the port … perhaps we should keep the rc script in one place rather than two?

@pswilde
Copy link
Contributor Author
pswilde commented May 4, 2025

Yep, that's fair. I wrote the original PR ( #274 ) before I knew of your ports version, so I agree this is largely unecessary now.
I am running with env vars via daemon successfully in production however, and on another service with all threeenv_file, env and args with overrides without issue. So perhaps whatever didn't work before works now, or I've just been lucky 😄

Anyway, very happy for ports to be the mainline, as it should be. Perhaps a note in docs to point people that way?

Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe
Copy link
Contributor
Xe commented May 5, 2025

I'd be more than happy to have the ports version be the way we suggest for FreeBSD. Just make sure it's up to date!

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 this pull request may clos 381B e these issues.

3 participants
0