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

17 Commits

Author SHA1 Message Date
Baalaji
1d2e42b737
docker: Switch to distroless (#43)
* docker: Use distroless

Much slimmer, way lesser attack surface

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

* docker: Disable CGO

Isnt needed by our code, and breaks distroless

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

* Uprev mongodb driver

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

* tidy go module

Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
2022-04-18 20:06:36 +02:00
Lukas Schulte Pelkum
e8e2b49466
Use text/plain as fallback content type for hastebin support 2022-01-29 22:17:42 +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
542bb5b17d
Implement deletion token toggle & master 2021-04-20 16:38:00 +02:00
Lukas Schulte Pelkum
a1d037801c
Implement working postgres driver 2021-04-15 21:30:37 +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
bf96209d99 Implement SQL storage driver 2020-08-28 19:55:10 +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
5149434cff Implement S3 storage driver 2020-08-23 23:44:47 +02:00
Lukas SP
8317fef5f7 Implement rate limiting 2020-08-23 23:07:07 +02:00
Lukas SP
7a77bfe92b Tidy modules 2020-08-23 14:14:37 +02:00
Lukas SP
13b0e961ae Fix frontend routing 2020-08-23 14:13:17 +02:00
Lukas SP
51765d6f03 Implement basic web server structure and get paste endpoint 2020-08-23 00:32:46 +02:00
Lukas SP
ba0aebdb62 Implement basic configuration and storage structure 2020-08-22 23:24:38 +02:00
Lukas SP
9bd6044e39 Implement basic paste structure 2020-08-22 22:27:37 +02:00