Skip to content

Commit a2fc6d6

Browse files
fix: Fix configuration documentation errors for DESTINATIONS_WEBHOOK_HEADER_PREFIX and PORTAL_REFERER_URL (#587)
* fix: Fix documentation incorrect information * fix: Fix default header * chore: typo * docs: generate config docs --------- Co-authored-by: Alex Luong <[email protected]>
1 parent 6160261 commit a2fc6d6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/pages/features/event-delivery.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following environment variables can be used to customize the webhook behavio
3333

3434
| Environment Variable | Default Value | Required |
3535
| ------------------------------------------------ | ------------------------------------------------------ | -------- |
36-
| `DESTINATIONS_WEBHOOK_HEADER_PREFIX` | `x-` | No |
36+
| `DESTINATIONS_WEBHOOK_HEADER_PREFIX` | `x-outpost-` | No |
3737
| `DESTINATIONS_WEBHOOK_DISABLE_EVENT_ID_HEADER` | `false` | No |
3838
| `DESTINATIONS_WEBHOOK_DISABLE_SIGNATURE_HEADER` | `false` | No |
3939
| `DESTINATIONS_WEBHOOK_DISABLE_TIMESTAMP_HEADER` | `false` | No |

docs/pages/features/tenant-user-portal.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The portal is a React SPA that is distributed via the API.
1818

1919
## Required Config
2020

21-
`PORTAL_REFERER_URL` is used to redirect the user when the JWT token is expired or when the user clicks "back".
21+
`PORTAL_REFERER_URL` is used to redirect the user when the JWT token is expired or when the user clicks 'back'.
2222

2323
`PORTAL_ORGANIZATION_NAME` is used to display the name of the organization deploying the portal.
2424

docs/pages/references/configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Global configurations are provided through env variables or a YAML file. ConfigM
9393
| `PORTAL_LOGO_DARK` | URL for the dark-mode logo to be displayed in the Outpost Portal. | `nil` | No |
9494
| `PORTAL_ORGANIZATION_NAME` | Organization name displayed in the Outpost Portal. | `nil` | No |
9595
| `PORTAL_PROXY_URL` | URL to proxy the Outpost Portal through. If set, Outpost serves the portal assets, and this URL is used as the base. Must be a valid URL. | `nil` | No |
96-
| `PORTAL_REFERER_URL` | The expected Referer URL for accessing the portal. This is a security measure. Required if the Outpost Portal is enabled/used. Example: 'https://admin.example.com'. | `nil` | Conditional |
96+
| `PORTAL_REFERER_URL` | The URL where the user is redirected when the JWT token is expired or when the user clicks 'back'. Required if the Outpost Portal is enabled/used. | `nil` | Conditional |
9797
| `POSTGRES_URL` | Connection URL for PostgreSQL, used for log storage. Example: 'postgres://user:pass@host:port/dbname?sslmode=disable'. | `nil` | Yes |
9898
| `PUBLISH_AWS_SQS_ACCESS_KEY_ID` | AWS Access Key ID for the SQS publish queue. Required if AWS SQS is the chosen publish MQ provider. | `nil` | Conditional |
9999
| `PUBLISH_AWS_SQS_ENDPOINT` | Custom AWS SQS endpoint URL for the publish queue. Optional. | `nil` | No |
@@ -452,7 +452,7 @@ portal:
452452
# URL to proxy the Outpost Portal through. If set, Outpost serves the portal assets, and this URL is used as the base. Must be a valid URL.
453453
proxy_url: ""
454454

455-
# The expected Referer URL for accessing the portal. This is a security measure. Required if the Outpost Portal is enabled/used. Example: 'https://admin.example.com'.
455+
# The URL where the user is redirected when the JWT token is expired or when the user clicks 'back'. Required if the Outpost Portal is enabled/used.
456456
# Required: Conditional
457457
referer_url: ""
458458

examples/demos/dashboard-integration/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ For detailed implementation guidance with code examples, see **[INTEGRATION_DETA
184184
| `RABBITMQ_SERVER_URL` | RabbitMQ connection | `amqp://guest:guest@rabbitmq:5672` |
185185
| `TOPICS` | Available event topics (comma-separated) | `user.created,order.completed,payment.processed` |
186186
| `PORTAL_ORGANIZATION_NAME` | Portal branding | `API Platform Demo` |
187-
| `PORTAL_REFERER_URL` | Dashboard URL for "Back to" navigation link in portal | `http://localhost:3000` |
187+
| `PORTAL_REFERER_URL` | The URL where the user is redirected when the JWT token is expired or when the user clicks 'back'. Required if the Outpost Portal is enabled/used. | `http://localhost:3000` |
188188

189189
## Docker Services
190190

@@ -294,4 +294,4 @@ This demo demonstrates several integration patterns:
294294
- Form validation with user-friendly error messages
295295
- API error responses with appropriate HTTP status codes
296296
- Loading states and skeleton screens for data fetching
297-
- Fallback UI for failed API calls
297+
- Fallback UI for failed API calls

internal/config/portal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
type PortalConfig struct {
1111
ProxyURL string `yaml:"proxy_url" env:"PORTAL_PROXY_URL" desc:"URL to proxy the Outpost Portal through. If set, Outpost serves the portal assets, and this URL is used as the base. Must be a valid URL." required:"N"`
12-
RefererURL string `yaml:"referer_url" env:"PORTAL_REFERER_URL" desc:"The expected Referer URL for accessing the portal. This is a security measure. Required if the Outpost Portal is enabled/used. Example: 'https://admin.example.com'." required:"C"`
12+
RefererURL string `yaml:"referer_url" env:"PORTAL_REFERER_URL" desc:"The URL where the user is redirected when the JWT token is expired or when the user clicks 'back'. Required if the Outpost Portal is enabled/used." required:"C"`
1313
FaviconURL string `yaml:"favicon_url" env:"PORTAL_FAVICON_URL" desc:"URL for the favicon to be used in the Outpost Portal." required:"N"`
1414
BrandColor string `yaml:"brand_color" env:"PORTAL_BRAND_COLOR" desc:"Primary brand color (hex code) for theming the Outpost Portal (e.g., '#6122E7'). Also referred to as Accent Color in some contexts." required:"N"`
1515
Logo string `yaml:"logo" env:"PORTAL_LOGO" desc:"URL for the light-mode logo to be displayed in the Outpost Portal." required:"N"`

0 commit comments

Comments
 (0)