Commit Graph

20 Commits

Author SHA1 Message Date
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
Orhun Parmaksız 48063d736a
feat(config): allow omitting MIME settings from the config 2022-05-21 06:25:23 +03:00
Orhun Parmaksız dd91c50d50
feat(server): support auto-deletion of expired files (#17)
feat(server): support auto-deletion of expired files (#17)

chore(ci): set the number of test threads to 1

feat(config): allow the real-time update of cleanup routine

docs(readme): update README.md about deleting expired files
2022-03-23 16:13:46 +03:00
Orhun Parmaksız 1dd5dcf167
fix(config): unset `CONFIG` environment variable to avoid conflicts 2022-03-13 21:12:10 +03:00
Orhun Parmaksız 94516c95bb
feat(config): support setting the timeout for HTTP requests 2022-03-12 00:35:54 +03:00
Orhun Parmaksız 9e5bd112e7
feat(config): support setting the refresh rate for hot-reloading 2022-03-12 00:02:25 +03:00
Orhun Parmaksız d6ba6ac630
chore(deps): upgrade dependencies 2022-02-25 00:10:52 +03:00
Orhun Parmaksız 3cc40deca0
feat(config): support setting the auth token in config 2022-02-24 23:51:47 +03:00
Orhun Parmaksız a2de1c3334
feat(config): hot-reload the configuration 2021-11-07 16:06:57 +03:00
Orhun Parmaksız c08fd29a45
feat(paste): make duplicate uploads optional (#7) 2021-10-12 19:35:06 +03:00
orhun cc385d1aca
refactor(test): use `tests` module for tests 2021-08-09 22:50:01 +03:00
orhun e7ad855f4d
feat(paste): support blacklisting MIME types 2021-08-09 22:48:51 +03:00
orhun 03348cb38f
feat(paste): support overriding MIME types 2021-08-09 22:28:33 +03:00
orhun 338802cc9b
refactor(config): create the `random` module for generating URLs 2021-07-26 15:34:23 +03:00
orhun 97f47a5a42
refactor(config): remove environment variable prefix 2021-07-24 23:51:23 +03:00
orhun 181c8c602c
refactor(server): use .env for auth token 2021-07-24 14:10:30 +03:00
orhun 4c988a446d
test(project): add tests 2021-07-24 13:47:24 +03:00
orhun f67e611781
feat(paste): make pet names configurable 2021-07-24 00:01:16 +03:00
orhun fc425067f7
feat(paste): support using random file names 2021-07-23 23:53:41 +03:00
orhun 1413335519
feat(server): support file upload and serving 2021-07-23 22:52:00 +03:00