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
Chris Jones
9d153ad907
feat(server): allow configuring the content type for landing page ( #48 )
...
* Allow user configuration of content type
* style(format): apply formatting
---------
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-05-28 00:16:46 +02:00
TheTechRobo
37cb4d3fcb
feat(server): add landing page ( #26 )
...
* feat(server): add landing page
Fixes orhun/rustypaste#13
* feat(server): allow using {REPOSITORY} in landing page
* fix(server): Get rid of unused import, add line about expiration
* chore(fmt): cargo fmt
* fix(tests): inject app data for fixing index test
* feat(server): redirect to GitHub repository if landing page is not specified
* test(fixtures): add fixture test for landing page
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-10-03 21:27:35 +00:00