Skip to content

Commit 37b00d6

Browse files
author
Arnaud RITTI
committed
Release 0.1.3
1 parent 746ab79 commit 37b00d6

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ docker run --rm -p 80:80 arnaudritti/devtools
2727

2828
#### Environement variables
2929

30-
| Name | default value | options |
31-
| ----------- | ------------- | -------------------------- |
32-
| APP_ENV | `prod` | `prod`, `dev` |
33-
| BUCKET_MODE | `path` | `path`, `sudomain`, `both` |
30+
| Name | default value | options |
31+
| -------------------- | ------------- | -------------------------- |
32+
| APP_ENV | `prod` | `prod`, `dev` |
33+
| BUCKET_MODE | `path` | `path`, `sudomain`, `both` |
34+
| BUCKET_REQUEST_LIMIT | `50` | integer |
35+
| BUCKET_EXPIRE_AFTER | `48` | hours (integer) |
3436

3537
Or use the hosted service at [https://devtools.arnaud-ritti.fr/](https://devtools.arnaud-ritti.fr/)
3638

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"license": "UNLICENSED",
33
"private": true,
4-
"version": "0.1.2",
4+
"version": "0.1.3",
55
"engines": {
66
"node": "16.x"
77
},

src/Controller/Http/DocumentationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function index(Request $request): Response
2727
{
2828
return $this->render('http_documentation/index.html.twig', [
2929
'controller_name' => 'HttpDocumentationController',
30-
]);
30+
])->setPublic()->setMaxAge(3600);
3131
}
3232

3333
#[Route('/doc/{tag}', name: 'app.tag', condition: '!request.attributes.has("_bin")')]
@@ -72,6 +72,6 @@ public function tag(string $tag): Response
7272
return $this->render('http_documentation/tag.html.twig', [
7373
'paths' => current(array_values($paths)),
7474
'tag' => current(array_keys($paths)),
75-
]);
75+
])->setPublic()->setMaxAge(3600);
7676
}
7777
}

0 commit comments

Comments
 (0)