Implement a better Str::slug for env variables #7350
QarthO
started this conversation in
Improvement Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Coolify adds labels to containers
coolify/bootstrap/helpers/docker.php
Lines 227 to 248 in da17494
Currently it uses Laravel's
Str::slugfunction to make the labels URL friendly (but these are labels, not urls). The docker labels support a LOT special characters (but not all). If i have some of these allowed characters in my project name or service name they get sent to the ether when added as a label.In my coolify setup I set the project name to be the site url (ie. "
myblog.com") These labels are transformed (because of Str::slug) to "myblogcom"So it would be nice if we used a diferent (or custom) helper function that preserved the characters that docker labels support.
All reactions