Helmut K. C. Tessarek
|
d2d07ad345
|
feat(server): improve random_url config handling (#122)
* feat(server): improve random_url config handling
* log deprecation warnings after hot reload of config
* refactor(config): adjust config files
* tests(config): add test for deprecation codepath
* remove unnecessary to_string()
* style: delete empty line
* refactor(server): clean up random_url config handling
* refactor(config): update configs accordingly to deprecated random_url.enabled
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
2023-08-20 20:32:41 +02:00 |
Helmut K. C. Tessarek
|
aa1734b3f8
|
refactor(config): use a separate section for the landing page (#65)
* add [landing_page] section to config
Migration path:
Old:
```
[server]
landing_page = "Landing page text."
landing_page_file = "index.html"
landing_page_content_type = "text/html; charset=utf-8"
```
New:
```
[landing_page]
text = "Landing page text."
file = "index.html"
content_type = "text/html; charset=utf-8"
```
* fix typo and remove comments
* make the section optional
* make the section optional
* test(server): fix landing page related test failures
* also change html_form.toml
* do not break current config
* refactor(config): deprecate server.landing_page config fields
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
2023-06-23 17:20:24 +02:00 |
Helmut K. C. Tessarek
|
e0d6712dd3
|
feat(server): support a file for the landing page (#64)
* implemented landing_page_file
* fixed issues found by linter
* fixed formatting
* refactor(config): refactor landing page file handling
* add tests
* fix unnecessary conversion
* fix formatting
* remove comment
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
2023-06-16 16:21:44 +02:00 |