Commit Graph

138 Commits

Author SHA1 Message Date
Orhun Parmaksız 4d16e65edb
test(fixtures): add a test framework along with test fixtures 2022-05-21 15:27:38 +03:00
Orhun Parmaksız 3467038353
feat(env): support configuring logger from .env file 2022-05-21 09:07:37 +03:00
Orhun Parmaksız 63c79b8297
feat(log): print the configuration as trace log at startup 2022-05-21 06:26:17 +03: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 87d2423d1a
test(server): add test for duplicate uploads 2022-05-18 09:50:47 +03:00
Orhun Parmaksız 013c6ac810
test(server): add tests for server configuration 2022-05-17 22:38:57 +03:00
Orhun Parmaksız 1f8f462299
test(server): add tests for different paste types 2022-05-17 22:09:24 +03:00
Orhun Parmaksız a330b59dca
fix(lints): apply clippy suggestions for tests 2022-05-16 12:58:41 +03:00
Orhun Parmaksız 657ca8c1d4
fix(server): do not hold the RwLock guard before async calls 2022-05-16 12:34:57 +03:00
Orhun Parmaksız 59415cd31a
docs(readme): update contributing details 2022-05-16 10:28:57 +03:00
Orhun Parmaksız 1d44cbd9c8
test(server): add test for upload 2022-05-16 10:25:59 +03:00
Orhun Parmaksız 74237d56c5
chore(release): prepare for v0.7.0 2022-03-26 00:54:15 +03:00
Orhun Parmaksız 527fbc4f49
chore(deps): upgrade dependencies 2022-03-26 00:07:57 +03:00
frederik 8679ff91dc
chore(systemd): add systemd service files (#22)
Add systemd files to serve files from /var/lib/rustypaste, automatic
user creation via systemd-sysusers and AUTH_TOKEN configuration via
rustypaste.env in /etc/rustypaste/rustypaste.env.

implements #16
2022-03-25 23:51:20 +03:00
Orhun Parmaksız 8ed0b7bbf1
chore(build): strip the binary 2022-03-23 16:48:39 +03:00
Orhun Parmaksız 9136d1ce09
docs(readme): add testing instructions to README.md 2022-03-23 16:41:09 +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 a3e266b8b4
refactor(server): define global constants for environment variables 2022-03-17 15:54:08 +03:00
Orhun Parmaksız c48e45d68c
chore(deps): upgrade actix dependencies
closes #18
2022-03-17 15:46:32 +03:00
Orhun Parmaksız 51d6fdd0d8
docs(readme): reorder sections in README.md 2022-03-17 11:53:16 +03:00
Orhun Parmaksız 2d5c14a6e0
docs(readme): apply shellcheck suggestions to cleanup script 2022-03-17 11:50:27 +03:00
sh 44ab1318ee
docs(readme): add shell script for cleaning files (#20) 2022-03-17 11:47:33 +03:00
Sven-Hendrik Haase d3a9e0c69d
chore(codecov): add codecov config (#21)
This is to ensure that trivial decreases in code coverage don't fail the pipeline.
2022-03-17 00:29:26 +03:00
Orhun Parmaksız 525129ddcb
fix(server): check if the path is a file while serving
closes #19
2022-03-16 16:37:54 +03:00
Orhun Parmaksız ffe067f9da
chore(release): prepare for v0.6.5 2022-03-13 21:33:32 +03:00
Orhun Parmaksız 08dc063a7a
docs(readme): add installation instructions for Arch Linux 2022-03-13 21:13:31 +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 e3a97045f4
chore(release): prepare for v0.6.4 2022-03-12 02:04:18 +03:00
Orhun Parmaksız bdb8492a11
chore(deps): upgrade dependencies 2022-03-12 02:02:36 +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 fda6f91211
style(readme): update the formatting of example shell function 2022-03-12 00:03:37 +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 0f893ba058
docs(changelog): update CHANGELOG.md about auth_token example 2022-02-25 00:32:19 +03:00
Orhun Parmaksız d4a12cdcee
chore(release): prepare for v0.6.3 2022-02-25 00:25:50 +03:00
Orhun Parmaksız 2ef453be28
chore(docker): remove Rust edition workaround from Dockerfile 2022-02-25 00:14:14 +03:00
Orhun Parmaksız d6ba6ac630
chore(deps): upgrade dependencies 2022-02-25 00:10:52 +03:00
Orhun Parmaksız 6f1dcab15a
fix(lints): apply clippy suggestions 2022-02-24 23:54:54 +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 53686c6c93
docs(license): update copyright years 2022-01-09 15:05:41 +03:00
Orhun Parmaksız 4f6456a3c8
chore(release): prepare for v0.6.2 2021-12-05 16:16:10 +03:00
Orhun Parmaksız 17b8c1940c
chore(deps): upgrade dependencies 2021-12-05 16:09:53 +03:00
Orhun Parmaksız ebbe8dbfae
test(paste): update paste test about borrowing the config 2021-12-05 15:27:38 +03:00
Orhun Parmaksız 2b80c78a02
Merge branch 'master' of ssh://github.com/orhun/rustypaste 2021-12-05 15:04:21 +03:00
Orhun Parmaksız 8f3f89716f
fix(async): drop the RW guard of config before suspend points 2021-12-05 15:03:51 +03:00
Orhun Parmaksız 5cbb41c247
fix(async): clone Ref to avoid holding it across a suspend point 2021-12-05 14:13:25 +03:00
Sven Assmann 8a03fe3655
chore(deps): bump versions (#9) 2021-11-17 19:42:45 +03:00
Orhun Parmaksız dbda1bb94a
chore(release): prepare for v0.6.1 2021-11-16 19:48:38 +03:00
Orhun Parmaksız 8b17137c52
fix(server): gracefully handle the hot-reloading errors 2021-11-16 19:27:18 +03:00
Orhun Parmaksız 27cfa6aca3
chore(release): prepare for v0.6.0 2021-11-07 17:44:10 +03:00
Orhun Parmaksız f3859d2857
docs(readme): make the heading sizes consistent 2021-11-07 17:25:42 +03:00