Commit Graph

172 Commits

Author SHA1 Message Date
Ishan Jain bfd60e44ab
bugfix: Restart task if either of them fail, validate utf8 input before sending it off to db 2023-02-11 23:39:43 +05:30
Ishan Jain b2f53860b4
limit max paste size via terminal to 2MiB 2023-02-11 22:52:57 +05:30
Ishan Jain f424f47ce7
bugfix
Before this commit, When reading long paste, It would read until read
bytes > 0. This means, It'll only read 1 packet, Generate URL, return it
and exit

Now it has been updated to keep reading bytes until there is nothing for
500ms
2023-02-11 22:50:34 +05:30
Ishan Jain b4119095d1
add https prefix to urls 2023-02-11 21:57:59 +05:30
Ishan Jain d100ab8f5d
More updates!
1. Removed unused dependencies
2. Removed API endpoint since I am not going to use it
3. Updated program to monitor sigint and sigterm and exit on receiving
   any of these signals
2023-02-11 21:52:15 +05:30
Ishan Jain ce05bb1dfc
increase CLI expiry duration to 90 days 2023-02-11 21:41:15 +05:30
Ishan Jain be4da1823f
updates!
1. Removed all codes which adds ability to execute programs and display
  results
2. Added more options for the save duration
2023-02-11 21:37:33 +05:30
Ishan Jain ba55a222f5
updated dependencies, Added listener to accept pastes directly in terminal 2023-02-11 19:20:45 +05:30
Konrad Borowski 96fbaaba49 Bump vite to 3.0.0 2022-07-14 21:31:55 +02:00
Konrad Borowski 1914f3a8f4 Support CORS for languages API 2022-06-12 13:31:16 +02:00
Konrad Borowski c12e67b25c Disable strict parsing for api paste submissions 2022-05-29 00:10:14 +02:00
Konrad Borowski fdab5bfbec Implement Prometheus metrics 2022-05-21 13:56:24 +02:00
Konrad Borowski e5879dbbb6 Disable referrers 2022-05-11 17:52:05 +02:00
Konrad Borowski 56a0f968f1 Enable Content Security Policy 2022-05-11 17:28:45 +02:00
Konrad Borowski 72ca817196 Update rocket to 0.5.0-rc.2 2022-05-09 22:44:49 +02:00
Konrad Borowski 9c6305f070 Use asset server only for production 2022-05-08 10:03:31 +02:00
Konrad Borowski 97f4c13732 Rewrite JavaScript code using SolidJS 2022-05-08 07:54:17 +02:00
Konrad Borowski 3145db96e4 Provide single output box 2022-04-25 19:33:40 +02:00
Konrad Borowski a883d10813 Put correct file name when using sandbox 2022-03-19 12:09:35 +01:00
Konrad Borowski b63935c491 Use new sandbox API 2022-03-19 11:37:04 +01:00
Konrad Borowski b6176a8298 Document security of attribute filter on class attribute 2022-01-17 15:17:50 +01:00
Konrad Borowski 693d5545f7 Update copyright years for models/paste.rs 2022-01-17 15:17:41 +01:00
Konrad Borowski 9c29a70b8a Remove unnecessary async from config route 2021-11-17 22:28:54 +01:00
Konrad Borowski 9e469e70d6 Wrap run in closure to avoid map_err 2021-10-19 20:23:38 +02:00
Konrad Borowski f328a4821b Avoid using relative! macro
This doesn't interact well with Nix.
2021-10-19 16:29:50 +02:00
Konrad Borowski 92bb21da21 Add missing license comments 2021-10-19 14:46:44 +02:00
Konrad Borowski 3f62644ffe Enable CORS for inserting pastes using API 2021-10-19 14:44:56 +02:00
Konrad Borowski 0cc2c08e10 Enable CORS for raw pastes 2021-10-19 14:27:43 +02:00
Konrad Borowski e716813973 Update display paste template to use ExternPaste 2021-10-19 13:13:54 +02:00
Konrad Borowski c7f72387f8 Implement /config 2021-10-19 12:47:57 +02:00
Konrad Borowski ad67fef7ee Implement /api/v1/languages 2021-10-19 12:34:46 +02:00
Konrad Borowski 4ccf9b6e23 Implement /api/v1/pastes 2021-10-19 12:28:27 +02:00
Konrad Borowski 80a68e5aba Implement /api/v0/run 2021-10-19 10:57:57 +02:00
Konrad Borowski b22dd46828 Add missing license comments 2021-06-14 18:57:59 +02:00
Konrad Borowski a484351922 Implement /api/v0/language 2021-06-14 18:53:12 +02:00
Konrad Borowski c5f29e5953 Replace JsPath struct with a function 2021-06-14 18:38:01 +02:00
Konrad Borowski 173ed88f8f Implement fetching JavaScript path 2021-06-14 18:36:02 +02:00
Konrad Borowski 4fd5b21fb7 Move raw paste route to routes packages 2021-06-14 18:22:09 +02:00
Konrad Borowski 48c407238b Move paste display route to routes packages 2021-06-14 18:19:20 +02:00
Konrad Borowski 51be385d28 Move paste insertion route to routes packages 2021-06-14 18:13:10 +02:00
Konrad Borowski 928ca2106b Remove unnecessary .to_string() in FromUriParam impl 2021-06-14 18:03:21 +02:00
Konrad Borowski e4e719eb40 Move index route to routes package 2021-06-14 18:02:57 +02:00
Konrad Borowski daf02569e5 Add 2021 to copyright years for main.rs 2021-06-13 23:25:15 +02:00
Konrad Borowski 22cb398975 Provide raw paste links on paste page 2021-06-13 23:22:50 +02:00
Konrad Borowski d94e06c97f Show language when displaying paste 2021-06-13 22:59:38 +02:00
Konrad Borowski d45e044289 Move generate_description to be just after display_paste 2021-06-13 22:50:48 +02:00
Konrad Borowski 7b361d0b2e Implement raw pastes 2021-06-13 22:30:46 +02:00
Konrad Borowski 3a6afbdc5b Implement displaying pastes 2021-06-13 22:00:37 +02:00
Konrad Borowski 70089f8050 Implement inserting pastes 2021-06-13 21:31:20 +02:00
Konrad Borowski e5b50b46fa Implement main page 2021-06-13 20:43:16 +02:00