mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 21:20:34 +00:00
feat: add Sessy as one-click service
Add email observability platform Sessy to the service catalog with auto-generated HTTP Basic Auth credentials and SQLite storage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1044,6 +1044,31 @@ class Service extends BaseModel
|
||||
|
||||
$fields->put('Strapi', $data->toArray());
|
||||
break;
|
||||
case $image->contains('marckohlbrugge/sessy'):
|
||||
$data = collect([]);
|
||||
$username = $this->environment_variables()->where('key', 'SERVICE_USER_SESSY')->first();
|
||||
$password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_SESSY')->first();
|
||||
if ($username) {
|
||||
$data = $data->merge([
|
||||
'HTTP Auth Username' => [
|
||||
'key' => data_get($username, 'key'),
|
||||
'value' => data_get($username, 'value'),
|
||||
'rules' => 'required',
|
||||
],
|
||||
]);
|
||||
}
|
||||
if ($password) {
|
||||
$data = $data->merge([
|
||||
'HTTP Auth Password' => [
|
||||
'key' => data_get($password, 'key'),
|
||||
'value' => data_get($password, 'value'),
|
||||
'rules' => 'required',
|
||||
'isPassword' => true,
|
||||
],
|
||||
]);
|
||||
}
|
||||
$fields->put('Sessy', $data->toArray());
|
||||
break;
|
||||
default:
|
||||
$data = collect([]);
|
||||
$admin_user = $this->environment_variables()->where('key', 'SERVICE_USER_ADMIN')->first();
|
||||
|
||||
Reference in New Issue
Block a user