1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00
Commit Graph

68 Commits

Author SHA1 Message Date
Lukas Schulte Pelkum
05a27a00c0
make config compatibility layer more abstract 2023-06-17 18:20:25 +02:00
Lukas Schulte Pelkum
18839a2021
implicitly write 200 HTTP status code 2023-06-17 17:10:37 +02:00
Lukas Schulte Pelkum
c414fd7c59
implement request logging 2023-06-17 17:00:44 +02:00
Lukas Schulte Pelkum
127af0a907
print Hastebin support removal notice 2023-06-17 15:23:39 +02:00
Lukas Schulte Pelkum
bdac813e59
implement paste reports 2023-06-17 15:16:22 +02:00
Lukas Schulte Pelkum
b9a6a81821
implement SQLite storage driver 2023-06-13 01:22:05 +02:00
Lukas Schulte Pelkum
6260f20fc4
implement info endpoint 2023-06-08 19:55:43 +02:00
Lukas Schulte Pelkum
dc16506932
integrate the web server into the startup logic 2023-06-08 19:44:32 +02:00
Lukas Schulte Pelkum
a24be8b2ff
undo accidental string replacements 2023-06-08 19:27:27 +02:00
Lukas Schulte Pelkum
4ce806945d
implement raw paste handler 2023-06-08 19:24:32 +02:00
Lukas Schulte Pelkum
a53bd39dbd
implement frontend routing 2023-06-08 19:17:34 +02:00
Lukas Schulte Pelkum
941da057ae
reimplement v2 API controller 2023-06-07 19:51:54 +02:00
Lukas Schulte Pelkum
8b1a4d23b7
restructure storage driver 2023-06-07 18:25:28 +02:00
Lukas Schulte Pelkum
3575c02c1e
restructure startup & config logic 2023-06-07 17:46:19 +02:00
Lukas Schulte Pelkum
e93b292daf
refactor package structure & remove v1 API 2022-08-29 15:58:20 +02:00
Lukas Schulte Pelkum
1a574add49
remove deletion token notation support 2022-08-22 16:58:36 +02:00
Lukas Schulte Pelkum
317d7e6d88
Fix cleanup SQL query 2022-02-07 19:53:23 +01:00
Lukas Schulte Pelkum
e8e2b49466
Use text/plain as fallback content type for hastebin support 2022-01-29 22:17:42 +01:00
Lukas Schulte Pelkum
c7fcdeb91c
Include AutoDelete lifetime in /api/v2/info response 2022-01-29 16:18:40 +01:00
Lukas Schulte Pelkum
471aff5bc5
Temporarily allow customization of the frontend path (workaround for #36, #37) 2022-01-29 01:28:54 +01:00
Baalaji
15b32b093e
Mongo: Uprev Driver and update code for MongoDB Server 4.2+ (#27)
* Update mongodb driver to 1.8.0

Signed-off-by: baalajimaestro <me@baalajimaestro.me>

* mongodb_driver: Update to support MongoDB 4.2+

https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/\#update-with-an-aggregation-pipeline
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2021-11-27 19:34:57 +01:00
Lukas Schulte Pelkum
bd10c3321e
Fix paste creation endpoint redirection loop 2021-10-15 17:45:17 +02:00
Lukas Schulte Pelkum
1818fac196
Remove the paste-specific autoDelete field 2021-07-30 21:51:33 +02:00
Lukas Schulte Pelkum
6172ad463b
Update paste report webhook request 2021-07-24 17:03:40 +02:00
Lukas Schulte Pelkum
e8f7fa239e
Add option to define ID and modification token generation characters (#17) 2021-07-24 17:00:29 +02:00
Lukas Schulte Pelkum
70c4392390
Improve the frontend (API v2 functionalities) (#18)
* Fix line number height issue

* Fix notification container position

* Remove line wrapping

* Switch to the new API

* Rework JS & implement paste editing

* Implement paste reports

* Document the report webhook
2021-07-23 23:39:37 +02:00
Lukas Schulte Pelkum
149abf77f1
Fix paste saving SQL query 2021-07-22 23:33:19 +02:00
Lukas Schulte Pelkum
9eaf9c3053
Fix postgres migration 2021-07-22 22:44:00 +02:00
Lukas Schulte Pelkum
99504e0bba
Implement API v2 (#13)
* Add documentation notice

* Rename the deletion token to modification token

* Implement API basics

* Implement paste modification endpoint (#10)

* Implement paste metadata

* Implement report webhook support

* Document API

* Document paste entity

* Update syntax highlighting types (js -> jsonc)

* Update migrator
2021-07-22 22:26:21 +02:00
Lukas Schulte Pelkum
4c392b4b52
Implement raw paste endpoint 2021-06-21 20:09:40 +02:00
Ringo Hoffmann
8cbb62070e
Add content length cap for paste creation endpoint (#8)
* add content length cap

* add development docker compose stack

* Fix paste creation error notification data

* Add length cap to hastebin endpoint as well

* Mention length cap in Readme

Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
2021-05-23 20:55:16 +02:00
Lukas Schulte Pelkum
5f7df183b4
Force specific Content-Type value for JS (#6) 2021-04-29 14:57:08 +02:00
Lukas Schulte Pelkum
542bb5b17d
Implement deletion token toggle & master 2021-04-20 16:38:00 +02:00
Lukas Schulte Pelkum
86522b63df
Fix file system driver ID listing 2021-04-18 22:05:48 +02:00
Lukas Schulte Pelkum
a1d037801c
Implement working postgres driver 2021-04-15 21:30:37 +02:00
Lukas Schulte Pelkum
ce9794b2c6
Restructure drivers 2021-04-15 21:03:26 +02:00
Lukas Schulte Pelkum
681ee9f1d0
Fix some stuff 2021-04-15 20:59:32 +02:00
Lukas Schulte Pelkum
1792ef1c38
Rework project structure 2021-04-15 20:15:42 +02:00
Lukas Schulte Pelkum
de2add44ec
Bump to Go 1.16 2021-04-15 19:26:17 +02:00
Lukas SP
078d9895a2 Prevent from sending deletion token hash 2020-10-02 18:25:39 +02:00
Lukas SP
4048edbabb Implement automatic paste deletion 2020-09-19 01:56:50 +02:00
Lukas SP
6b4563c7c9 Implement S3 missing object error handling 2020-09-02 19:13:49 +02:00
Lukas SP
bf96209d99 Implement SQL storage driver 2020-08-28 19:55:10 +02:00
Lukas SP
f97531e765 Implement transfer tool 2020-08-26 22:12:36 +02:00
Lukas SP
5a9a5a8885 Implement ID listing method in storage driver implementations 2020-08-26 21:59:22 +02:00
Lukas SP
55e65f5ecf Encode IDs in file storage driver to prevent unallowed file access 2020-08-24 21:40:18 +02:00
Lukas SP
7d0c25fb2f Seed random generator 2020-08-24 20:28:09 +02:00
Lukas SP
5585a26ab0 Switch from snowflake to random string ID system 2020-08-24 20:22:53 +02:00
Lukas SP
fa7699d17b Implement MongoDB storage driver 2020-08-24 19:18:05 +02:00
Lukas SP
f5357a2c9d Fix buggy frontend routing 2020-08-24 18:32:14 +02:00