Skip to content

Conversation

@benalleng
Copy link

@benalleng benalleng commented Feb 18, 2025

This issue payjoin/ohttp-relay#37 outlines a need for some documentation for a quickstart guide on a docker server with an nginx proxy.

You can take a look at the pretty markdown here https://github.com/benalleng/payjoin.org/blob/ohttp-relay-tutorial/docs/tutorials/quickstart-ohttp-relay.md

Still a WIP as there is still some text i need to cleanup and I have some outstanding questions

A few oustanding questions remain with this guide.

  • Figure out why my current implementation is not quite working correctly I think this is ready for some double checks as I am able to proxy to the payjo.in directory successfully
  • What are some basic test vectors, whether directing them to rust-payjoin to setup the relay in the tests somehow or just some very basic curl requests to make sure their server is receiving well
    • I think this curl -vk --proxy-insecure --proxy https://{you-public-ip} https://payjo.in/ohttp-keys --output - command does an ok job of ensuring that the proxy successfully connects and is able to then receive data from the payjo.in directory
  • Should we strip out some of the details like PORT selection in our .conf files and leave it as they exist here A quickstart guide like this is the time to be opinionated

Copy link
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some very basic curl requests to make sure their server is receiving well

This is the quickest way for us to meaningfully get off zero. I like it.

Should we strip out some of the details like PORT selection in our .conf files and leave it as they exist here

A concrete tutorial can state its opinion on explicit port definition IMO.

@@ -0,0 +1,92 @@
# Quickstart ohttp relay

We'll demostrate how you can setup an ohttp server on common cloud insfrastructure on something like [](483) using the `ohttp-relay` crate in Payjoin Dev Kit. This should take about 30 minutes. This tutorial assumes you have a basic understanding of the AWS infrastructure.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty link. What is "something like " referencing?

Not using AWS afaict

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry the copy still needs some cleanup. I had started making the guide thinking I would need to make it aws specific but its pretty easy to see that's not necessary.

@benalleng benalleng force-pushed the ohttp-relay-tutorial branch 3 times, most recently from 4b1ba6f to 6fae84a Compare February 19, 2025 17:00
@benalleng benalleng force-pushed the ohttp-relay-tutorial branch from c482eb8 to 67350da Compare February 20, 2025 16:46
@benalleng benalleng changed the title [WIP] Add quickstart guide for ohttp-relay on basic ubuntu server Add quickstart guide for ohttp-relay on basic ubuntu server Feb 20, 2025
@benalleng benalleng force-pushed the ohttp-relay-tutorial branch from 67350da to e8cc194 Compare February 20, 2025 17:05
@benalleng benalleng marked this pull request as ready for review February 20, 2025 17:05
Comment on lines 95 to 141

This curl request should occur in 2 stages
1. The proxy CONNECT request that passes through your relay to the `https://payjo.in` directory
2. The GET request on `/ohttp-keys` that will return a binary encoded output
A successful test should return a 200/OK response on both of these steps

```sh
curl -vk --proxy-insecure --proxy https://{your-relay-public-ip} https://payjo.in/ohttp-keys --output -
```
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that these keys could change is there a nice way to check and make sure the keys we are receiving are what we expect?

Copy link
Author

@benalleng benalleng Feb 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As opposed to something like just telling them to verify that the response == some_key_value

@benalleng benalleng force-pushed the ohttp-relay-tutorial branch 2 times, most recently from 81541b0 to 7add53b Compare March 11, 2025 15:41
@benalleng benalleng force-pushed the ohttp-relay-tutorial branch from 7add53b to 80bd7e6 Compare March 29, 2025 05:44
@benalleng benalleng force-pushed the ohttp-relay-tutorial branch from 80bd7e6 to 16936fb Compare April 29, 2025 18:06
This issue payjoin/ohttp-relay#37 outlines
a need for some documentation for a quickstart guide on a docker server
with a nginx proxy.

This iteration uses the existing dockerfile with a nginx reverse proxy
in front.
@benalleng benalleng force-pushed the ohttp-relay-tutorial branch from 16936fb to 5bd140d Compare August 18, 2025 14:48
This commit adds some helpful commands and tips to make it easier to
setup and as simple reminders about what is needed for the relay to be
setup correctly.
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.

2 participants