mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 21:18:11 -04:00
fix(api): accept settings that the UI can change but the API rejected
- Applications: is_container_label_readonly_enabled (turning it back on regenerates labels), include_coolify_default_variables, and dockerfile_target_build on create. - Databases: save is_log_drain_enabled on update instead of dropping it, include_coolify_default_variables, and disable_local_backup on backups (only with save_s3). - Services: include_coolify_default_variables, and redirect on service applications (www/non-www needs both hosts). - Servers: wildcard_domain, server_timezone, backup_compression_cpu_percentage, and the proxy error page. Closes #11092
This commit is contained in:
+155
@@ -808,6 +808,11 @@
|
||||
"type": "string",
|
||||
"description": "The Dockerfile location in the repository."
|
||||
},
|
||||
"dockerfile_target_build": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "The Docker build target (stage) in the Dockerfile."
|
||||
},
|
||||
"docker_compose_location": {
|
||||
"type": "string",
|
||||
"description": "The Docker Compose location."
|
||||
@@ -893,6 +898,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
},
|
||||
"is_pr_deployments_public_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Make pull request deployments public."
|
||||
@@ -927,6 +937,11 @@
|
||||
"nullable": true,
|
||||
"description": "Traefik certificate resolver for this application. Null uses the server setting, \"none\" uses no resolver."
|
||||
},
|
||||
"is_container_label_readonly_enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Let Coolify manage the container labels. True regenerates custom_labels from domains, redirect, and proxy settings. False keeps custom_labels as you set them: domains, redirect, and basic auth changes then do not change the labels."
|
||||
},
|
||||
"is_raw_compose_deployment_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Deploy the raw Docker Compose definition."
|
||||
@@ -1445,6 +1460,11 @@
|
||||
"type": "string",
|
||||
"description": "The Dockerfile location in the repository"
|
||||
},
|
||||
"dockerfile_target_build": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "The Docker build target (stage) in the Dockerfile."
|
||||
},
|
||||
"docker_compose_location": {
|
||||
"type": "string",
|
||||
"description": "The Docker Compose location."
|
||||
@@ -1530,6 +1550,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
},
|
||||
"is_pr_deployments_public_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Make pull request deployments public."
|
||||
@@ -1564,6 +1589,11 @@
|
||||
"nullable": true,
|
||||
"description": "Traefik certificate resolver for this application. Null uses the server setting, \"none\" uses no resolver."
|
||||
},
|
||||
"is_container_label_readonly_enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Let Coolify manage the container labels. True regenerates custom_labels from domains, redirect, and proxy settings. False keeps custom_labels as you set them: domains, redirect, and basic auth changes then do not change the labels."
|
||||
},
|
||||
"is_raw_compose_deployment_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Deploy the raw Docker Compose definition."
|
||||
@@ -2082,6 +2112,11 @@
|
||||
"type": "string",
|
||||
"description": "The Dockerfile location in the repository."
|
||||
},
|
||||
"dockerfile_target_build": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "The Docker build target (stage) in the Dockerfile."
|
||||
},
|
||||
"docker_compose_location": {
|
||||
"type": "string",
|
||||
"description": "The Docker Compose location."
|
||||
@@ -2167,6 +2202,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
},
|
||||
"is_pr_deployments_public_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Make pull request deployments public."
|
||||
@@ -2201,6 +2241,11 @@
|
||||
"nullable": true,
|
||||
"description": "Traefik certificate resolver for this application. Null uses the server setting, \"none\" uses no resolver."
|
||||
},
|
||||
"is_container_label_readonly_enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Let Coolify manage the container labels. True regenerates custom_labels from domains, redirect, and proxy settings. False keeps custom_labels as you set them: domains, redirect, and basic auth changes then do not change the labels."
|
||||
},
|
||||
"is_raw_compose_deployment_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Deploy the raw Docker Compose definition."
|
||||
@@ -2699,6 +2744,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
},
|
||||
"is_pr_deployments_public_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Make pull request deployments public."
|
||||
@@ -2733,6 +2783,11 @@
|
||||
"nullable": true,
|
||||
"description": "Traefik certificate resolver for this application. Null uses the server setting, \"none\" uses no resolver."
|
||||
},
|
||||
"is_container_label_readonly_enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Let Coolify manage the container labels. True regenerates custom_labels from domains, redirect, and proxy settings. False keeps custom_labels as you set them: domains, redirect, and basic auth changes then do not change the labels."
|
||||
},
|
||||
"is_raw_compose_deployment_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Deploy the raw Docker Compose definition."
|
||||
@@ -3211,6 +3266,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
},
|
||||
"is_pr_deployments_public_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Make pull request deployments public."
|
||||
@@ -3245,6 +3305,11 @@
|
||||
"nullable": true,
|
||||
"description": "Traefik certificate resolver for this application. Null uses the server setting, \"none\" uses no resolver."
|
||||
},
|
||||
"is_container_label_readonly_enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Let Coolify manage the container labels. True regenerates custom_labels from domains, redirect, and proxy settings. False keeps custom_labels as you set them: domains, redirect, and basic auth changes then do not change the labels."
|
||||
},
|
||||
"is_raw_compose_deployment_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Deploy the raw Docker Compose definition."
|
||||
@@ -3871,6 +3936,11 @@
|
||||
"type": "string",
|
||||
"description": "The Dockerfile location in the repository."
|
||||
},
|
||||
"dockerfile_target_build": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "The Docker build target (stage) in the Dockerfile."
|
||||
},
|
||||
"docker_compose_location": {
|
||||
"type": "string",
|
||||
"description": "The Docker Compose location."
|
||||
@@ -3981,6 +4051,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
},
|
||||
"is_pr_deployments_public_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Make pull request deployments public."
|
||||
@@ -4015,6 +4090,11 @@
|
||||
"nullable": true,
|
||||
"description": "Traefik certificate resolver for this application. Null uses the server setting, \"none\" uses no resolver."
|
||||
},
|
||||
"is_container_label_readonly_enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Let Coolify manage the container labels. True regenerates custom_labels from domains, redirect, and proxy settings. False keeps custom_labels as you set them: domains, redirect, and basic auth changes then do not change the labels."
|
||||
},
|
||||
"is_raw_compose_deployment_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Deploy the raw Docker Compose definition."
|
||||
@@ -7025,6 +7105,11 @@
|
||||
"description": "Whether to save backups to S3",
|
||||
"default": false
|
||||
},
|
||||
"disable_local_backup": {
|
||||
"type": "boolean",
|
||||
"description": "Delete the local backup file after the upload to S3. Only allowed when save_s3 is true.",
|
||||
"default": false
|
||||
},
|
||||
"s3_storage_uuid": {
|
||||
"type": "string",
|
||||
"description": "Primary S3 storage UUID. Sent without s3_storage_uuids, it selects this storage as the only destination. Either field is required if save_s3 is true."
|
||||
@@ -7502,6 +7587,14 @@
|
||||
"redact_all_env_values_in_logs": {
|
||||
"type": "boolean",
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values, database passwords, and remote secrets are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Restart the database to apply it."
|
||||
},
|
||||
"is_log_drain_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Send the database logs to the log drain of the server. Log drain must be enabled on the server. Restart the database to apply it."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -7652,6 +7745,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether data is saved in s3 or not"
|
||||
},
|
||||
"disable_local_backup": {
|
||||
"type": "boolean",
|
||||
"description": "Delete the local backup file after the upload to S3. Only allowed when save_s3 is true. Turning save_s3 off also turns this off."
|
||||
},
|
||||
"s3_storage_uuid": {
|
||||
"type": "string",
|
||||
"description": "Primary S3 storage UUID. Sent without s3_storage_uuids, it selects this storage as the only destination; when it is already a destination, it becomes the primary destination and the other destinations stay."
|
||||
@@ -17199,6 +17296,12 @@
|
||||
],
|
||||
"example": "https:\/\/example.com"
|
||||
},
|
||||
"proxy_error_page": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"generate_exact_labels": {
|
||||
"type": "boolean",
|
||||
"example": false
|
||||
@@ -17274,6 +17377,13 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"proxy_error_page": {
|
||||
"description": "Custom HTML error page that the proxy shows for unknown hosts (when redirect_url is empty) and for resources in maintenance mode. Null restores the default page.",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"generate_exact_labels": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -17328,6 +17438,12 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"proxy_error_page": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"generate_exact_labels": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -17442,6 +17558,12 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"proxy_error_page": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"generate_exact_labels": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -18448,6 +18570,25 @@
|
||||
"connection_timeout": {
|
||||
"type": "integer",
|
||||
"description": "SSH connection timeout in seconds (1-300). Default: 10."
|
||||
},
|
||||
"wildcard_domain": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "Wildcard domain (URL) used to generate domains for new resources on this server. Null removes it."
|
||||
},
|
||||
"server_timezone": {
|
||||
"type": "string",
|
||||
"description": "Timezone of the server, for example Europe\/Berlin. Scheduled tasks and backups use it."
|
||||
},
|
||||
"backup_compression_cpu_percentage": {
|
||||
"type": "integer",
|
||||
"enum": [
|
||||
25,
|
||||
50,
|
||||
75,
|
||||
100
|
||||
],
|
||||
"description": "Maximum CPU percentage that backup compression can use. Default: 25."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -18913,6 +19054,15 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"redirect": {
|
||||
"description": "How to handle www and non-www domains. \"www\" redirects non-www to www, \"non-www\" redirects www to non-www. Both need a www and a non-www domain in url.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"both",
|
||||
"www",
|
||||
"non-www"
|
||||
]
|
||||
},
|
||||
"max_restart_count": {
|
||||
"description": "Maximum Docker restart count before Coolify stops the container. Set to 0 to disable the limit.",
|
||||
"type": [
|
||||
@@ -20461,6 +20611,11 @@
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Redact all environment variable values in logs. When false, only locked (shown once) values are redacted. Requires team admin permissions."
|
||||
},
|
||||
"include_coolify_default_variables": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Add the predefined COOLIFY_* variables (COOLIFY_URL, COOLIFY_FQDN, ...) to the environment. Requires team admin permissions. Redeploy to apply it."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user