diff --git a/RECIPES.md b/RECIPES.md index 495fc420..5eec7f8f 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -365,6 +365,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [letkode/form-schema-bundle](https://packagist.org/packages/letkode/form-schema-bundle) | [1.0](../../../tree/main/letkode/form-schema-bundle/1.0) | | [lexik/cron-file-generator-bundle](https://packagist.org/packages/lexik/cron-file-generator-bundle) | [1.0](../../../tree/main/lexik/cron-file-generator-bundle/1.0) | | [lexik/maintenance-bundle](https://packagist.org/packages/lexik/maintenance-bundle) | [2.1](../../../tree/main/lexik/maintenance-bundle/2.1) | +| [lgarret/health-check-bundle](https://packagist.org/packages/lgarret/health-check-bundle) | [1.0](../../../tree/main/lgarret/health-check-bundle/1.0) | | [liip/imagine-bundle](https://packagist.org/packages/liip/imagine-bundle) | [1.8](../../../tree/main/liip/imagine-bundle/1.8) | | [liip/monitor-bundle](https://packagist.org/packages/liip/monitor-bundle) | [3.0](../../../tree/main/liip/monitor-bundle/3.0) | | [lireincore/imgcache-bundle](https://packagist.org/packages/lireincore/imgcache-bundle) | [0.1](../../../tree/main/lireincore/imgcache-bundle/0.1) | diff --git a/archived/lgarret.health-check-bundle/f8db791bad4cd2c2ea791499329399b015f0f36d.json b/archived/lgarret.health-check-bundle/f8db791bad4cd2c2ea791499329399b015f0f36d.json new file mode 100644 index 00000000..55958be9 --- /dev/null +++ b/archived/lgarret.health-check-bundle/f8db791bad4cd2c2ea791499329399b015f0f36d.json @@ -0,0 +1,63 @@ +{ + "manifests": { + "lgarret/health-check-bundle": { + "manifest": { + "bundles": { + "Lgarret\\HealthCheckBundle\\HealthCheckBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "HEALTH_CHECK_SECRET": "!ChangeMe!" + }, + "post-install-output": [ + " * The health check endpoint is exposed at /health.", + "", + " * Replace the HEALTH_CHECK_SECRET placeholder in .env with a real value.", + " Callers sending it in the Authorization header get the detailed check results;", + " everyone else only sees the global status.", + "", + " * If your firewall covers every path, grant it anonymous access in config/packages/security.yaml:", + " access_control:", + " - { path: ^/health$, roles: PUBLIC_ACCESS }", + "", + " * Enable, disable and tune the checks in config/packages/health_check.yaml.", + "", + " * Docs: https://github.com/LouisGarret/health-check-bundle" + ] + }, + "files": { + "config/packages/health_check.yaml": { + "contents": [ + "health_check:", + " path: '/health'", + " secret: '%env(HEALTH_CHECK_SECRET)%'", + " header: 'Authorization'", + " timeout: 5", + " cache:", + " enabled: true", + " ttl: 300", + " checks:", + " doctrine: true", + " asset_mapper: true", + "" + ], + "executable": false + }, + "config/routes/health_check.yaml": { + "contents": [ + "health_check:", + " resource: .", + " type: health_check", + "" + ], + "executable": false + } + }, + "ref": "f8db791bad4cd2c2ea791499329399b015f0f36d" + } + } +} diff --git a/index.json b/index.json index 97628cb4..3b6c7c93 100644 --- a/index.json +++ b/index.json @@ -1163,6 +1163,9 @@ "lexik/maintenance-bundle": [ "2.1" ], + "lgarret/health-check-bundle": [ + "1.0" + ], "liip/imagine-bundle": [ "1.8" ], diff --git a/lgarret.health-check-bundle.1.0.json b/lgarret.health-check-bundle.1.0.json new file mode 100644 index 00000000..55958be9 --- /dev/null +++ b/lgarret.health-check-bundle.1.0.json @@ -0,0 +1,63 @@ +{ + "manifests": { + "lgarret/health-check-bundle": { + "manifest": { + "bundles": { + "Lgarret\\HealthCheckBundle\\HealthCheckBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "HEALTH_CHECK_SECRET": "!ChangeMe!" + }, + "post-install-output": [ + " * The health check endpoint is exposed at /health.", + "", + " * Replace the HEALTH_CHECK_SECRET placeholder in .env with a real value.", + " Callers sending it in the Authorization header get the detailed check results;", + " everyone else only sees the global status.", + "", + " * If your firewall covers every path, grant it anonymous access in config/packages/security.yaml:", + " access_control:", + " - { path: ^/health$, roles: PUBLIC_ACCESS }", + "", + " * Enable, disable and tune the checks in config/packages/health_check.yaml.", + "", + " * Docs: https://github.com/LouisGarret/health-check-bundle" + ] + }, + "files": { + "config/packages/health_check.yaml": { + "contents": [ + "health_check:", + " path: '/health'", + " secret: '%env(HEALTH_CHECK_SECRET)%'", + " header: 'Authorization'", + " timeout: 5", + " cache:", + " enabled: true", + " ttl: 300", + " checks:", + " doctrine: true", + " asset_mapper: true", + "" + ], + "executable": false + }, + "config/routes/health_check.yaml": { + "contents": [ + "health_check:", + " resource: .", + " type: health_check", + "" + ], + "executable": false + } + }, + "ref": "f8db791bad4cd2c2ea791499329399b015f0f36d" + } + } +}