Skip to content

Commit

Permalink
initial version for survos/bunny-bundle (#1711)
Browse files Browse the repository at this point in the history
* initial version for survos/bunny-bundle

* fix namespace

* fix yaml spacing

* add the api_key

* Update survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml

Co-authored-by: Fabien Potencier <[email protected]>

* Update survos/bunny-bundle/1.5/manifest.json

Co-authored-by: Dmitri Perunov <[email protected]>

* Update survos/bunny-bundle/1.5/post-install.txt

Co-authored-by: Dmitri Perunov <[email protected]>

---------

Co-authored-by: Fabien Potencier <[email protected]>
Co-authored-by: Dmitri Perunov <[email protected]>
  • Loading branch information
3 people authored Jan 29, 2025
1 parent 6a0aa55 commit 980f9be
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
survos_bunny:
# this is generated automatically with bin/console bunny:config <api-key>
api_key: '%env(BUNNY_API_KEY)%'
# optionally set a default storage zone
#storage_zone:
4 changes: 4 additions & 0 deletions survos/bunny-bundle/1.5/config/routes/survos_bunny.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
survos_bunny:
resource: '@SurvosBunnyBundle/config/routes.yaml'
# consider adding /admin to this route and securing it in security.yaml
prefix: '/bunny'
11 changes: 11 additions & 0 deletions survos/bunny-bundle/1.5/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"Survos\\BunnyBundle\\SurvosBunnyBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"BUNNY_API_KEY": ""
}
}
10 changes: 10 additions & 0 deletions survos/bunny-bundle/1.5/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<bg=green;fg=white> </>
<bg=green;fg=white> success </>
<bg=green;fg=white> </>

* <fg=yellow>Next steps:</>
1. Get the main API key from https://dash.bunny.net/account/api-key
2. Optionally add the key to your environment. Otherwise, run the command below with the API key as the argument.
3. bin/console bunny:config <api-key> >> .env.local
4. run bin/console bunny:list to see the zones
5. Only add the API keys you need to the production environment.

0 comments on commit 980f9be

Please sign in to comment.