Skip to content

feat(RM-116): Added InteractionsBaseUrl to config#20

Merged
BenHall-1 merged 2 commits intoTicketsBot-cloud:masterfrom
DanPlayz0:feat/configurable-whitelabel-gateway
May 15, 2025
Merged

feat(RM-116): Added InteractionsBaseUrl to config#20
BenHall-1 merged 2 commits intoTicketsBot-cloud:masterfrom
DanPlayz0:feat/configurable-whitelabel-gateway

Conversation

@DanPlayz0
Copy link
Copy Markdown
Contributor

This is mostly a feature for self-hosted instances of the bot.

This pull request introduces a configuration-driven approach to handling the InteractionsEndpointUrl in the WhitelabelPost endpoint, replacing the previously hardcoded URL. It also updates the configuration structure to support this change. Below are the key changes:

Configuration Updates:

  • Added a new configuration field, InteractionsBaseUrl, to the Config struct in config/config.go. This field is populated from the INTERACTIONS_BASE_URL environment variable, with a default value of https://gateway.ticketsbot.cloud.

Endpoint Updates:

  • Modified the WhitelabelPost function in whitelabelpost.go to use the new InteractionsBaseUrl configuration field instead of a hardcoded URL for the InteractionsEndpointUrl.

@BenHall-1 BenHall-1 changed the title feat: Added InteractionsBaseUrl to config feat(RM-116): Added InteractionsBaseUrl to config May 15, 2025
@BenHall-1 BenHall-1 merged commit 888c3f9 into TicketsBot-cloud:master May 15, 2025
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