Skip to content
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

feat: add wildcard domain support #871

Open
wants to merge 2 commits into
base: canary
Choose a base branch
from

Conversation

kawws
Copy link
Contributor

@kawws kawws commented Dec 12, 2024

Adding an option for a custom wildcardDomain domain, just point *.example.com as an A record to your servers IP for your own wildcard domain.
When wildcard domain are entered we simplify the domain aswell.

Inspired from Vercel (example.vercel.app)

If I have forgot anything please let me know!

- Introduced a new optional field `wildcardDomain` in the admin schema and related forms.
- Updated the database schema to include the `wildcardDomain` column.
- Enhanced the domain generation logic to utilize the `wildcardDomain` when provided.
- Added localization strings for the new `wildcardDomain` input in the settings.

This change allows users to specify a wildcard domain for their server configurations.
@kawws kawws requested a review from Siumauricio as a code owner December 12, 2024 19:12
Copy link
Contributor

@Siumauricio Siumauricio left a comment

Choose a reason for hiding this comment

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

If you can add a demo of how this works it would be great.

Comment on lines 81 to +84
host: data.domain,
letsEncryptEmail: data.letsEncryptEmail,
certificateType: data.certificateType,
wildcardDomain: data.wildcardDomain,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not updating the value in the database, check in the backend mutation how the data is received.

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