3789caf68f
Add prettyness.
2023-05-17 08:10:01 -04:00
Orhun Parmaksız
29ddef8df0
feat(deploy): deploy on shuttle.rs ( #36 )
...
* feat(deploy): deploy on shuttle.rs
* chore(deploy): add automated shuttle deploy workflow
* style(readme): update the formatting in README.md
* chore(deploy): optimize shuttle workflow
* fix(deploy): start the project
* fix(deploy): remove start step
This reverts commit 4f25921aeb2a064952dd9bc88895e446cac134e6.
* chore(deploy): expose the version for the public instance
* docs(lib): update the comment for shuttle entry-point
* chore(deploy): run the shuttle deployment on new tag
2023-05-14 18:03:53 +02:00
Orhun Parmaksız
4a4301ee72
style(server): make the default landing page fancier
2023-05-14 01:56:57 +03:00
Orhun Parmaksız
607f07b6e1
feat(server): support server-side default expiry time
2023-05-14 01:30:35 +03:00
Orhun Parmaksız
9ea7d5de8a
feat(config): support overriding the server URL
2023-05-13 23:20:52 +03:00
Orhun Parmaksız
99ac6156a8
feat(server): allow downloading files via ?download=true
parameter ( #24 )
2023-01-31 21:03:00 +03: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
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
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
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
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
1d44cbd9c8
test(server): add test for upload
2022-05-16 10:25:59 +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
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
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
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
ebbe8dbfae
test(paste): update paste test about borrowing the config
2021-12-05 15:27:38 +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
Orhun Parmaksız
8b17137c52
fix(server): gracefully handle the hot-reloading errors
2021-11-16 19:27:18 +03:00
Orhun Parmaksız
7797180937
fix(server): change the config data type for serve route
2021-11-07 17:03:00 +03:00
Orhun Parmaksız
6b3914a54e
chore(lib): import required traits for backwards edition compatibility
2021-11-07 16:25:08 +03:00
Orhun Parmaksız
a2de1c3334
feat(config): hot-reload the configuration
2021-11-07 16:06:57 +03:00
Orhun Parmaksız
f078a9afa7
fix(server): prevent serving an already expired file
2021-11-07 00:49:31 +03:00
Orhun Parmaksız
3eee294bd9
docs(lib): update the function comment for store_remote_file
2021-11-07 00:01:30 +03:00
Orhun Parmaksız
7a6842e181
feat(paste): support pasting files from remote URLs
2021-11-06 23:55:55 +03:00
Orhun Parmaksız
c08fd29a45
feat(paste): make duplicate uploads optional ( #7 )
2021-10-12 19:35:06 +03:00
orhun
13126e79ce
refactor(paste): use timestamp for expiring one shot files
2021-08-27 16:05:40 +03:00
orhun
92c35fe6df
feat(paste): support setting an expiry date for uploads
2021-08-27 15:54:23 +03:00
orhun
7a510bc2ad
style(paste): use a custom 404 message while serving files
2021-08-26 23:06:05 +03:00
orhun
73359f3534
feat(paste): support disappearing (oneshot) files
2021-08-26 22:57:46 +03:00
orhun
3223c6379c
refactor(paste): associate directories with the paste types
2021-08-26 21:09:33 +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