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

Support for wildcard routes #202

Closed
4 tasks
seanhamlin opened this issue Apr 12, 2023 · 1 comment
Closed
4 tasks

Support for wildcard routes #202

seanhamlin opened this issue Apr 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@seanhamlin
Copy link
Contributor

seanhamlin commented Apr 12, 2023

At present Lagoon expects each and every domain to be enumerated in the .lagoon.yml file. This poses a challenge for some sites that wish to do application based multi-tenancy, and wish to have all subdomains of a particular root domain forwarded to an application.

.lagoon.yml changes

environments:
  main:
    routes:
      - nginx:
        - "example.com":
            tls-acme: false
        - "www.example.com":
            tls-acme: false
        - "banana.example.com":
            tls-acme: false

Rather than having to list every subdomain, add a new wildcard flag:

environments:
  main:
    routes:
      - nginx:
        - "example.com":
            tls-acme: false
            wildcard: true

This will have the effect of routing example.com and *.example.com to the application within the cluster.

Known caveats

Lets Encrypt will need to be disabled for all wildcard routes, and TLS will need to be sorted outside Lagoon (e.g. by purchasing a wildcard TLS cert).

Key goals

  • Support the generation of wildcard ingress objects
  • Update the docs to inform users about wildcard routes
  • Update the Lagoon linter to ensure this is valid YAML
  • Add warning in the build about users attempting to use wildcard routes with tls-acme set to true. Lagoon should force set this to be false and ignore what the user supplies.
@seanhamlin seanhamlin added the enhancement New feature or request label Apr 12, 2023
@seanhamlin
Copy link
Contributor Author

Solved in #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant