Commit Graph

168 Commits

Author SHA1 Message Date
Orhun Parmaksız
e82914f0f1
fix(ci): update cargo-tarpaulin installation command 2023-01-29 16:52:29 +03:00
Orhun Parmaksız
695bb738cd
docs(license): update copyright years 2023-01-01 20:38:12 +03:00
Marcin Puc
96b919e5ee
chore(deps): remove unused clap dependency (#32) 2023-01-01 18:36:37 +01:00
Orhun Parmaksız
8bac3cc91f
fix(lints): apply clippy suggestions for tests 2022-12-18 23:43:58 +03:00
Orhun Parmaksız
e83b8e6f4a
fix(lints): apply clippy suggestions 2022-12-18 23:12:28 +03:00
Orhun Parmaksız
a954676547
chore(release): prepare for v0.8.2 2022-10-04 19:37:09 +02:00
Leonidas Spyropoulos
a324305a7d
fix(config): don't expose version endpoint in default config (#31)
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-10-04 16:29:23 +00:00
Orhun Parmaksız
df0d5391b4
docs(changelog): update CHANGELOG.md for v0.8.1 2022-10-04 13:55:05 +02:00
Orhun Parmaksız
8394aacb49
chore(deps): update time dependency 2022-10-04 13:04:21 +02:00
Leonidas Spyropoulos
1050448ebd
chore(deps): replace unmaintained dotenv with dotenvy (#30)
Fixes: #25

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>3
2022-10-04 10:02:51 +00:00
Orhun Parmaksız
20a1482aa7
chore(release): prepare for v0.8.1 2022-10-04 12:49:58 +02:00
Leonidas Spyropoulos
5cdbc8da61
feat(server): expose version as endpoint (#29)
Fixes: #27

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-10-04 09:38:37 +00:00
Orhun Parmaksız
00cee6d9ba
chore(release): prepare for v0.8.0 2022-10-04 01:29:35 +02:00
Orhun Parmaksız
6ffc5d6209
chore(deps): upgrade dependencies 2022-10-04 01:14:23 +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
Orhun Parmaksız
1e1da30b83
fix(lints): apply clippy suggestions 2022-08-14 12:11:03 +02:00
Orhun Parmaksız
a7dcc39f91
chore(funding): enable GitHub Sponsors for funding
https://github.com/sponsors/orhun
2022-07-31 15:05:03 +02:00
PLANTROON
a0f076269e
chore(config): do not check for duplicate files by default (#23)
It is an expensive operation to do on slower hardware and can take unreasonable amount of time for bigger files
2022-06-25 02:57:03 +03:00
Orhun Parmaksız
59f9b46bb8
chore(release): prepare for v0.7.1 2022-05-21 20:02:05 +03:00
Orhun Parmaksız
16628e402a
chore(deps): upgrade dependencies 2022-05-21 19:54:05 +03:00
Orhun Parmaksız
deec5d4c29
test(fixtures): add fixture test for random URL 2022-05-21 19:31:43 +03:00
Orhun Parmaksız
a98f0ae22e
test(fixtures): add fixture test for default extension 2022-05-21 19:23:59 +03:00
Orhun Parmaksız
5cdca1d9aa
test(fixtures): add fixture test for MIME override 2022-05-21 19:12:09 +03:00
Orhun Parmaksız
c06fff92ac
test(fixtures): add fixture test for MIME blacklist 2022-05-21 18:47:41 +03:00
Orhun Parmaksız
d262a3d297
test(fixtures): add fixture test for auto deletion 2022-05-21 18:23:21 +03:00
Orhun Parmaksız
a6a8261a73
refactor(fixtures): merge test steps in a single subshell 2022-05-21 17:52:47 +03:00
Orhun Parmaksız
00167db3d6
fix(fixtures): enable random URLs for duplicate file fixture 2022-05-21 17:52:14 +03:00
Orhun Parmaksız
cccbf98acc
refactor(fixtures): use subshell for running fixture methods 2022-05-21 16:51:06 +03:00
Orhun Parmaksız
c60090d461
fix(fixtures): exit the run_test function on error 2022-05-21 16:43:32 +03:00
Orhun Parmaksız
685d9607c8
chore(ci): run test fixtures 2022-05-21 15:46:37 +03:00
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