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

Use configure_me to configure the proxy #62

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

Kixunil
Copy link
Contributor

@Kixunil Kixunil commented Sep 10, 2024

The proxy used a fixed port for configuration which would be a problem if the user ran a service on the same port already. This change allows the user to configure the port using configure_me which supports passing arguments, environment variables or configuration files.

BTW nice that you've made the proxy, I'll need it soon.

@rustaceanrob
Copy link
Collaborator

If you would like to explicitly ignore these lints in the CI you may.

@Kixunil
Copy link
Contributor Author

Kixunil commented Sep 11, 2024

Yes, I'll have to. I forgot to do that and had a bunch of stuff going on. (I still do though.)

@Kixunil Kixunil marked this pull request as draft September 12, 2024 12:05
@Kixunil
Copy link
Contributor Author

Kixunil commented Sep 12, 2024

Oh, I though I'd just use the CI to check the crate but it looks like it requires CI approval.

The proxy used a fixed port for configuration which would be a problem
if the user ran a service on the same port already. This change allows
the user to configure the port using `configure_me` which supports
passing arguments, environment variables or configuration files.
@Kixunil Kixunil marked this pull request as ready for review September 12, 2024 12:21
@Kixunil
Copy link
Contributor Author

Kixunil commented Sep 12, 2024

Rather than putting allow downstream I've decided to stop being lazy and I'm emitting it in the generated code. :)

@nyonson
Copy link
Collaborator

nyonson commented Sep 12, 2024

ACK 7edab43

Gave it a whirl locally and worked well for me.

BTW, cool project @Kixunil , reminds me of a Golang version I have been using for years: https://github.com/peterbourgon/ff

@rustaceanrob rustaceanrob merged commit 8b3492c into rust-bitcoin:main Sep 12, 2024
7 checks passed
@rustaceanrob
Copy link
Collaborator

Thank you for your contribution!

@Kixunil Kixunil deleted the configure_me branch September 12, 2024 17:55
@Kixunil
Copy link
Contributor Author

Kixunil commented Sep 12, 2024

I'm happy to help. I'm going to need your code, so I need to resolve outstanding issues first. :)

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 close these issues.

3 participants