[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
This commit is contained in:
The DevOpser
2025-02-04 19:11:34 +01:00
committed by GitHub
parent 980f9be485
commit 35aa18b559
3 changed files with 37 additions and 0 deletions

View File

@@ -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

View File

@@ -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"
}
}

View File

@@ -0,0 +1,14 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Welcome to Castor Bundle! </>
<bg=blue;fg=white> </>
* <fg=yellow>What's next?</>
1. Run <comment>php bin/console castor:install</comment> to initialize castor files
2. Configure your vhosts in config/packages/castor.yaml
* <fg=yellow>After each update:</>
Run <comment>php bin/console castor:install</comment> again to get the latest features
Documentation: https://github.com/thedevopser/castor-symfony