From 35aa18b55921e80f4babee45e9ffe609c18abb38 Mon Sep 17 00:00:00 2001 From: The DevOpser Date: Tue, 4 Feb 2025 19:11:34 +0100 Subject: [PATCH] [receipe] - create based structure to Castor Symfony receipe (#1754) * [receipe] - create based structure to Castor Symfony receipe * Update Castor Symfony recipe configuration to use environment variables * Update Castor Symfony configuration to use boolean environment variable for SSL --- .../castor-symfony/1.0/config/packages/castor.yaml | 10 ++++++++++ thedevopser/castor-symfony/1.0/manifest.json | 13 +++++++++++++ thedevopser/castor-symfony/1.0/post-install.txt | 14 ++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 thedevopser/castor-symfony/1.0/config/packages/castor.yaml create mode 100644 thedevopser/castor-symfony/1.0/manifest.json create mode 100644 thedevopser/castor-symfony/1.0/post-install.txt diff --git a/thedevopser/castor-symfony/1.0/config/packages/castor.yaml b/thedevopser/castor-symfony/1.0/config/packages/castor.yaml new file mode 100644 index 00000000..7aaf75be --- /dev/null +++ b/thedevopser/castor-symfony/1.0/config/packages/castor.yaml @@ -0,0 +1,10 @@ +castor: + vhost: + url: "%env(CASTOR_VHOST_URL)%" + nom: null # If empty be replaced by the project dir name + server: "%env(CASTOR_VHOST_SERVER)%" + os: null # Auto detect + ssl: + enabled: "%env(bool:CASTOR_VHOST_SSL_ENABLE)%" + certificate: null + certificate_key: null diff --git a/thedevopser/castor-symfony/1.0/manifest.json b/thedevopser/castor-symfony/1.0/manifest.json new file mode 100644 index 00000000..d2c3868c --- /dev/null +++ b/thedevopser/castor-symfony/1.0/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "TheDevOpser\\CastorBundle\\CastorBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "CASTOR_VHOST_URL": "test", + "CASTOR_VHOST_SERVER": "apache2", + "CASTOR_VHOST_SSL_ENABLE": "true" + } +} diff --git a/thedevopser/castor-symfony/1.0/post-install.txt b/thedevopser/castor-symfony/1.0/post-install.txt new file mode 100644 index 00000000..5006f6d8 --- /dev/null +++ b/thedevopser/castor-symfony/1.0/post-install.txt @@ -0,0 +1,14 @@ + + Welcome to Castor Bundle! + + + * What's next? + + 1. Run php bin/console castor:install to initialize castor files + 2. Configure your vhosts in config/packages/castor.yaml + + * After each update: + + Run php bin/console castor:install again to get the latest features + +Documentation: https://github.com/thedevopser/castor-symfony