Skip to content

feat: Custom Traefik entrypoint support #5694

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

Open
wants to merge 7 commits into
base: next
Choose a base branch
from

Conversation

arnokristiaan
Copy link

@arnokristiaan arnokristiaan commented Apr 25, 2025

We have a case in which we want to define a custom Traefik entrypoint in the proxy labels, for security purposes, but we cannot really use the entrypoint in the applications. This is caused because variables cannot be used in labels in order to specify a host. This PR mitigates that problem by using the Coolify domain settings for an application.

Usage

In the settings of an application under General > Domains you can set a domain like https://your.own.domain:8888 which will tell the proxy to route traffic to https://your.own.domain to the container on internal port 8888.

To use the custom entrypoint, which you created through your custom proxy labels, you change the domain to https://[email protected]:8888. This will do the same but will use the "your-custom-entrypoint" as entrypoint instead of the default https or http entrypoints.

Multiple entrypoints are supported by comma-separation.

Changes

  • Refactored bootstrap/docker.php to get rid of some duplicate code
  • Started using the user info to be able to tell coolify which Traefik entrypoint it should use in the labels, it defaults back to http and https

@arnokristiaan arnokristiaan marked this pull request as ready for review April 25, 2025 14:00
@andrasbacsai andrasbacsai deleted the branch coollabsio:next May 9, 2025 06:31
@arnokristiaan
Copy link
Author

@andrasbacsai Would it be possible to receive any comment on why this PR is closed?

@andrasbacsai andrasbacsai reopened this May 9, 2025
@andrasbacsai
Copy link
Member

It was a mistake, sorry. I recreated the next branch and it auto-closed this PR.

@arnokristiaan
Copy link
Author

@andrasbacsai That explains it, thanks for the response!

@Windol
Copy link

Windol commented May 19, 2025

How will this implementation work? How can I make use of it?

@arnokristiaan
Copy link
Author

@Windol I've edited the description of this PR with a usage chapter to explain how to use it.

@arnokristiaan arnokristiaan changed the title Custom Traefik entrypoint support feat: Custom Traefik entrypoint support May 30, 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.

3 participants