Commit graph

367 commits

Author SHA1 Message Date
Darren Nathanael
ef1a5da22a
API Escape (#241)
* chore: add pycaches to gitignore

* fix: correct escaping of api responses

The API did not respond as intended. :D
Co-authored-by: <Brian Ferri brian.ferri19@gmail.com>
2023-11-18 11:34:59 -05:00
Darren Nathanael
288e9236d0
Revert 239 CSP (#240)
* Revert "CSP - Upstream Patch (#239)"

This reverts commit 2ed25cc843.

* Remove 32bit
2023-11-17 11:53:35 -05:00
Darren Nathanael
2ed25cc843
CSP - Upstream Patch (#239)
* Remove 32bit

Docker does not support 32bit anymore.

* Fix CSP mistake from 6 years ago.

https://content-security-policy.com/unsafe-inline/

* CSP Vun oversight fix
2023-11-17 11:00:00 -05:00
Lixeiden
1de5afc1a7
Typo at apps.py (#227)
injeted > injected
2023-02-16 02:07:41 -05:00
Darren
25019615b9
Addresses typo in (#192) @ clean up snippets
See (https://github.com/DarrenOfficial/dpaste/issues/215)
2022-08-09 19:29:09 -05:00
Darren
51e9172479
Revert "Revert "add the posibility of specifying a url prefix"" (#206)
* Revert "Revert "add the posibility of specifying a url prefix (#143)" (#205)"

* mysql client
2022-05-29 13:56:56 -04:00
Darren
5ec8e0507e
Revert "add the posibility of specifying a url prefix (#143)" (#205)
This reverts commit 5510329a99.
2022-05-29 09:40:46 -04:00
Juanjo Gutiérrez
5510329a99
add the posibility of specifying a url prefix (#143)
this commit implements a prefix for urls, which allows easily deploying
dpaste into a "subdirectory". It adds a url_prefix to be read by default
from the environment which makes it especially suitable for using for
docker containers. For example, running

docker run -e PREFIX_URL=dpaste/ -p 8000:8000 barttc/dpaste

will make dpaste available on

http://localhost:8000/dpaste/

instead of the default http://localhost:8000

This is specially useful if you want to proxy dpaste from another host
and let it live in a sub-url. Without this commit all urls would be
incorrectly generated in this case.
2022-05-27 20:17:08 -04:00
Darren
a9e843367a
perf: updated lib, typing issues (#195)
Fixes deduplication of stuff
and fixes the deprecated warnings by changing the methods to use the new one.

Signed-off-by: Darren <git@darrennathanael.com>
2022-04-03 01:38:37 -04:00
Florian Cech
7a64572cc1
Addresses bug in cleanup_snippets script related to non-integer values for EXPIRE_DEFAULT (#192)
See https://github.com/DarrenOfficial/dpaste/issues/191

Co-authored-by: Darren <github@darrennathanael.com>
2022-03-22 17:30:24 -05:00
Darren
3809545536
remove pycache 2022-03-03 03:29:49 -05:00
Darren
6e5d3c8489
merge master into dp4
Signed-off-by: Darren <git@darrennathanael.com>
2022-03-03 03:27:35 -05:00
Martin Mahner
adc8573134 Code cleanup 2021-12-14 08:39:08 +01:00
Martin Mahner
49ca2d7631 Cache Fixes, Django 4.0 Update 2021-12-13 11:00:40 +01:00
Martin Mahner
8678b7efc9 Enable D language 2021-08-18 18:20:47 +02:00
Martin Mahner
ef1b2e7e72
Fixed typo. Fixes #145 2020-06-20 18:26:01 +02:00
Martin Mahner
cb7719b59f
Update tests.py 2020-01-21 23:24:13 +01:00
Martin Mahner
d0f7e2eda6 Use Black's default line length of 88 2020-01-08 13:19:52 +01:00
Martin Mahner
02a6812c80 Dependency updates and cleanup. 2020-01-08 13:12:28 +01:00
Martin Mahner
e39662ab32 Merge remote-tracking branch 'origin/master' 2019-12-08 23:08:13 +01:00
Martin Mahner
918398e0be Details view mobile improvement. 2019-12-08 23:08:03 +01:00
Martin Mahner
2b08f32e14 Better mobile form grid. 2019-12-08 22:57:00 +01:00
Martin Mahner
09ed6aa845 Version 3.4 2019-12-08 19:44:19 +01:00
Martin Mahner
9449d5d976 Final code cleanup. 2019-12-08 19:44:07 +01:00
Martin Mahner
d8e3d62f29 More cleanup and more helper 2019-12-08 12:47:39 +01:00
Martin Mahner
652d20a28f Fix Detail Form Post. Use shorthand super(). 2019-12-08 10:22:35 +01:00
Martin Mahner
4930a4cd5a Fix import 2019-12-08 10:13:39 +01:00
Martin Mahner
6741ccc6b4 Translate error pages. 2019-12-08 09:18:45 +01:00
Martin Mahner
0c9b346c4d Add cache control headers with respect to Snippet expire time. 2019-12-08 09:07:23 +01:00
Martin Mahner
a8574613ab Purge orphaned one time snippets. 2019-12-07 20:19:54 +01:00
Martin Mahner
3de7837ac2 Extra context variables 2019-12-07 17:04:44 +01:00
Martin Mahner
101060e6e5 Document Docker installation 2019-12-07 13:03:18 +01:00
Martin Mahner
f86f298a03 Try to automate migrations. 2019-12-07 12:21:04 +01:00
Martin Mahner
e3d4725e52 Fix Django 3.0 tests with CSP issues 2019-12-07 12:05:53 +01:00
Martin Mahner
c9ab955545 Drop pipenv in favor of Docker/Virtualenv.
Basically https://chriswarrick.com/blog/2018/07/17/pipenv-promises-a-lot-delivers-very-little/
2019-12-07 11:37:30 +01:00
Martin Mahner
dc3e797be8 Further cleanup along settings and debris. 2019-12-07 09:38:07 +01:00
Martin Mahner
da13a8ce63 Don't expose production url. 2019-12-07 07:50:29 +01:00
Martin Mahner
0d02049951 Fixed slug test. 2019-12-07 07:50:19 +01:00
Martin Mahner
e54790c8f9 Quote cleanup, fStrings and Deprecation fixes. 2019-12-07 07:20:52 +01:00
Martin Mahner
cd586f62fe Snippets are deleted as soon as they exceed their expiration time.
It's no longer necessary to rely on the cleanup_snippets management command to do that.
2019-12-07 07:13:22 +01:00
Martin Mahner
68d21874b5 Allow slim view to be iframed. Refs #126 2019-12-05 15:30:20 +01:00
Martin Mahner
d4c678eb73 Slim snippet view. Refs #126. 2019-12-05 12:54:51 +01:00
Martin Mahner
34b970cf5d New AppConfig settings APPLICATION_NAME and EXTRA_HEAD_HTML 2019-12-05 11:36:24 +01:00
Martin Mahner
bd4c2363d2 Bump version and update Changelog. 2019-12-05 09:41:34 +01:00
Martin Mahner
63a8500cc8 Django 3.0 compatibility. 2019-12-05 09:41:05 +01:00
Martin Mahner
7759df5158 Use pytest for testsuite runs. 2019-12-05 09:40:39 +01:00
Martin Mahner
25d4a74e94 Bump up version 2019-08-04 20:57:22 +02:00
Martin Mahner
275addaca4 isort config that's aligned with black settings. 2019-07-23 11:09:45 +02:00
Martin Mahner
a1a048462d 3.3 Release 2019-07-12 16:14:44 +02:00
Martin Mahner
7acfa1f475 Ship compiled static files with Pypi package. #125 2019-07-12 16:14:18 +02:00