-
Notifications
You must be signed in to change notification settings - Fork 33
docs: Document ROFL proxy custom domains #2349
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for oasisprotocol-oasis-sdk ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
7670f91 to
c51ba27
Compare
c51ba27 to
78352ad
Compare
|
I have applied my suggestions. @matevz please review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2349 +/- ##
=======================================
Coverage 48.54% 48.55%
=======================================
Files 224 224
Lines 16079 16079
=======================================
+ Hits 7806 7807 +1
+ Misses 8213 8212 -1
Partials 60 60 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
78352ad to
0f3e788
Compare
| services in your app. Simply publish a port in your `compose.yaml` and the | ||
| proxy handles TLS certificates and routing. | ||
| The ROFL proxy automatically generates public HTTPS URLs for services in your | ||
| ROFL app. Simply publish a port in your `compose.yaml` and the proxy handles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid using "ROFL app" and use either "ROFL" or "app".
| ROFL app. Simply publish a port in your `compose.yaml` and the proxy handles | |
| app. Simply publish a port in your `compose.yaml` and the proxy handles |
| @@ -1,10 +1,10 @@ | |||
| # Port Proxy | |||
| # ROFL Proxy | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't repeat ROFL in the title, because the whole part is devoted to ROFL. I'd leave the title alone or maybe change it simply to # Proxy.
| # ROFL Proxy | |
| # Port Proxy |
| TLS certificates and routing. | ||
|
|
||
| TLS is terminated inside the app, providing end-to-end encryption so that | ||
| TLS is terminated inside the ROFL app, providing end-to-end encryption so that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| TLS is terminated inside the ROFL app, providing end-to-end encryption so that | |
| TLS is terminated inside the app, providing end-to-end encryption so that |
| ``` | ||
| After deploying your app, you can find the generated URL by | ||
| After deploying your ROFL app, you can find the generated URL by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| After deploying your ROFL app, you can find the generated URL by | |
| After deploying your ROFL, you can find the generated URL by |
| route through the proxy. | ||
|
|
||
| When using `custom_domain`, you must verify ownership of the domain and complete the | ||
| routing setup. After your ROFL app is deployed, use the Oasis CLI to obtain setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| routing setup. After your ROFL app is deployed, use the Oasis CLI to obtain setup | |
| routing setup. After your app is deployed, use the Oasis CLI to obtain setup |
|
|
||
| `<published_port>` — the external port exposed in your compose.yaml | ||
|
|
||
| `<setting>` — the specific proxy configuration (e.g., mode, custom_domain) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `<setting>` — the specific proxy configuration (e.g., mode, custom_domain) | |
| `<setting>` — the specific proxy configuration (e.g., `mode`, `custom_domain`) |
| Port proxy for your ROFL automatically generates public HTTPS URLs for | ||
| services in your app. Simply publish a port in your `compose.yaml` and the | ||
| proxy handles TLS certificates and routing. | ||
| The ROFL proxy automatically generates public HTTPS URLs for services in your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't true for passthrough mode anymore.
| #### `mode` | ||
|
|
||
| `net.oasis.proxy.ports.<published_port>.mode` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #### `mode` | |
| `net.oasis.proxy.ports.<published_port>.mode` | |
| #### `net.oasis.proxy.ports.<published_port>.mode` |
| #### `custom_domain` | ||
|
|
||
| `net.oasis.proxy.ports.<published_port>.custom_domain` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #### `custom_domain` | |
| `net.oasis.proxy.ports.<published_port>.custom_domain` | |
| #### `net.oasis.proxy.ports.<published_port>.custom_domain` |
|
|
||
| What this configuration does: | ||
| - The application container exposes ports 8080 and 80. | ||
| - On port 8080 the proxy forwards the raw TCP connection to your application container (mode: passthrough). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - On port 8080 the proxy forwards the raw TCP connection to your application container (mode: passthrough). | |
| - On port 8080 the proxy forwards the raw TCP connection to your application container (`mode: passthrough`). |
Preview: https://deploy-preview-2349--oasisprotocol-oasis-sdk.netlify.app/build/rofl/features/proxy/#configuration