⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@DanGould
Copy link
Contributor

@DanGould DanGould commented Feb 5, 2026

Listen for both HTTP and HTTPS

This allows us to fully rely on the payjoin-service without a reverse proxy. Without
this change, It's not possible to support TLS bootstrapping and environments, like
Bitcoin Core, which don't have TLS available.

Big GPT-5.2 Codex use here (it wrote every line). manual review of each line. Automated but checked documentation + renames for clarity.

Draft until #1315 is in

Pull Request Checklist

Please confirm the following before requesting review:

This satisfies trait bounds for AxumAcceptor in the next commit.
Add an `acme` feature flag and config section modeled after the
payjoin-directory feature.

This implementation uses `tokio-rustls-acme`'s AxumAcceptor following
the example in
https://github.com/FlorianUekermann/rustls-acme/blob/main/examples/low_level_axum.rs

As a result the AcmeConfig differs slightly from the one in
payjoin-directory to more closely reflect rustls-acme's AcmeConfig
struct.
@DanGould DanGould force-pushed the service-multi-listener branch from 79bb0e4 to 62a1ce2 Compare February 5, 2026 09:02
This allows us to fully rely on the payjoin-service without a reverse proxy. Without
this change, It's not possible to support TLS bootstrapping and environments, like
Bitcoin Core, which don't have TLS available.
Describe the service functions as standalone with acme or with reverse proxy TLS termination.
@DanGould DanGould force-pushed the service-multi-listener branch from 62a1ce2 to 8ca6f28 Compare February 5, 2026 09:02
@coveralls
Copy link
Collaborator

coveralls commented Feb 5, 2026

Pull Request Test Coverage Report for Build 21705299065

Details

  • 15 of 78 (19.23%) changed or added relevant lines in 4 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.3%) to 82.902%

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin-service/src/main.rs 0 6 0.0%
payjoin-service/src/config.rs 4 13 30.77%
payjoin-service/src/lib.rs 5 53 9.43%
Files with Coverage Reduction New Missed Lines %
payjoin-service/src/lib.rs 1 69.23%
payjoin-service/src/main.rs 1 0.0%
Totals Coverage Status
Change from base Build 21675282596: -0.3%
Covered Lines: 10153
Relevant Lines: 12247

💛 - Coveralls

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