refactor a lot of things

fix: postgres_passwords could be longer
feat: able to define postgresql databases from the ui
This commit is contained in:
Andras Bacsai
2023-08-09 15:57:53 +02:00
parent d18de24cf9
commit a378b5108e
42 changed files with 167 additions and 92 deletions

View File

@@ -13,7 +13,7 @@ function get_proxy_path()
function generate_default_proxy_configuration(Server $server)
{
$proxy_path = get_proxy_path();
if (isDev()) {
if (is_dev()) {
$proxy_path = config('coolify.dev_config_path') . '/' . $server->name . '/proxy';
}
$networks = collect($server->standaloneDockers)->map(function ($docker) {
@@ -85,7 +85,7 @@ function generate_default_proxy_configuration(Server $server)
],
],
];
if (isDev()) {
if (is_dev()) {
$config['services']['traefik']['command'][] = "--log.level=debug";
}
return Yaml::dump($config, 4, 2);