Commit Graph

411 Commits

Author SHA1 Message Date
Yusuf Yilmaz
fa9d3f98e9 remove web app class and fixes 2022-06-02 10:45:20 +02:00
Yusuf Yilmaz
82fd0654e2 Fix redis store 2022-06-01 15:43:10 +02:00
Yusuf Yilmaz
bf6795aa8b Fix dev command 2022-06-01 10:28:48 +02:00
Yusuf Yilmaz
66d547ddb9 Update server.ts 2022-05-27 16:32:33 +02:00
Yusuf Yilmaz
57488eda62 Update server.ts 2022-05-27 16:25:05 +02:00
Yusuf Yilmaz
3f82d0b5f1 Fix eol 2022-05-27 15:25:22 +02:00
Yusuf Yilmaz
54f7b8744d Fix config and redis settings 2022-05-27 15:22:24 +02:00
Yusuf Yilmaz
ced5c3eef4 Fix 2022-05-27 15:12:00 +02:00
Yusuf Yilmaz
49a990802c Remove old js files 2022-05-27 15:05:21 +02:00
Yusuf Yilmaz
f527b13535 Add tests and fix docker files 2022-05-27 15:04:54 +02:00
Yusuf Yilmaz
9f45927593 [SAT-1957] Convert haste-server to Typescript 2022-05-27 11:00:09 +02:00
Leopere
68f6fe2b96
Don't track docker-compose.override.yml (#416)
This allows end users who need to build Hastebin for their deployments as an image in a private registry or any other changes without needing to collide with the ability to upgrade their local cached copy of the hastebin repo.
2022-05-09 12:28:41 +04:00
Filipe Chagas
7286385833 Add GHA workflow to mark and close inactive PRs and Issues 2022-03-08 11:45:42 -03:00
Linus J
3dcc43578b
Parse the expiration time as an INT (#392)
* handle expire time as int

* Removed logging

* Update lib/document_stores/postgres.js
2022-02-14 16:48:23 -03:00
Bryce
1ea6b6e99d
FIXED: Document post failing because expire parameter is string. (#366)
Specifically fixes docker example that uses memcached.

Co-authored-by: Bryce Leo <bryce.leo@trainingvault.us>
2022-02-14 15:19:42 -03:00
Leopere
7c613bc788
Delete superfluous network definition (#404)
No need to define a network when compose files and stackfiles come with their own cross container network defined as `default` superfluous networks add nothing.
2022-02-14 15:04:06 -03:00
Bruno Saboia
cb4809195b
Improve tests (#407)
* Improve tests

This PR adds some necessary tests, fixes the naming on describe
(everything was set to RandomKeyGenerator, perhaps a copy/paste
exception) and fixes the consonant/vowel alternation test, since it was
failing if the keyspace started with a vowel.

* Remove unecessary file
2022-02-14 14:59:14 -03:00
Konstantin Rybakov
00d84614c2
Merge pull request #389 from Lockszmith/Fix-Dockerfile
Fixes #376 + .dockerignore improvement
2022-01-12 18:04:00 +03:00
Konstantin Rybakov
52e7cef7ef
Merge pull request #402 from Sueqkjs/master
fixed spell
2022-01-12 17:08:29 +03:00
Sueqkjs
fbff1bc201
fixed spell
I fixed the spelling because it didn't work~ (crying)
2021-12-27 22:11:12 +09:00
Denis Berezin
7af15cc32d
Merge pull request #384 from brunosaboia/remove-trailing-spaces
Remove trailing whitespaces
2021-11-22 17:44:40 +03:00
Denis Berezin
7f397ce753
Merge pull request #398 from toptal/npm-audit-issues
Fix high severity npm issues
2021-11-22 17:35:14 +03:00
Denis Berezin
8f8b039f65 Fix high severity npm issues 2021-11-22 17:33:31 +03:00
Denis Berezin
eeaf2d7b18
Merge pull request #393 from jmartin84/391
fixed STORAGE_USERNAME typo in dockerfile
2021-11-22 17:20:06 +03:00
Justen Martin
db0b7d6444
fixed STORAGE_USERNAME typo in dockerfile 2021-10-06 22:40:46 -05:00
lksz
db6e7603f9 Fixes #376 + .dockerignore improvement 2021-09-10 01:02:26 -04:00
Bruno Saboia
ad5d7549d7 Remove trailing whitespaces
Dockerfile contained useless trailing whitespaces, which could generate
"ghost" diffs.
2021-07-14 11:00:42 +02:00
John Crepezzi
5d2965ffc5
Merge pull request #350 from seejohnrun/specify-config-on-boot
Allow setting config.js alternative on boot
2020-10-06 22:15:59 -04:00
John Crepezzi
f255928af7 Allow setting config.js alternative on boot
Closes #105
2020-10-06 22:15:13 -04:00
John Crepezzi
a108dbadc5
Merge pull request #349 from seejohnrun/add-head-support
Add support for HEAD requests
2020-10-06 22:07:19 -04:00
John Crepezzi
c409aca080 Add support for HEAD requests
On regular document endpoints, and on raw endpoints
2020-10-06 22:05:22 -04:00
John Crepezzi
219424550b Fix local name 2020-10-06 21:02:16 -04:00
John Crepezzi
f147acb51c Switch to using pg.Pool 2020-10-06 21:01:14 -04:00
John Crepezzi
9a692ed652 Get the client working as expected with pg 8 2020-10-06 21:01:10 -04:00
John Crepezzi
3a17c86a0f Upgrade pg to the most recent version
This isn't going to actually work yet, just getting things in place
2020-10-06 21:01:01 -04:00
John Crepezzi
677a22987a
Merge pull request #122 from Roundaround/mongodb
Added mongodb document store adapter
2020-10-06 01:46:59 -04:00
John Crepezzi
89d912c6ff
Merge pull request #347 from seejohnrun/fix-memcached
Fix memcached client fetch for key not found
2020-10-06 01:39:52 -04:00
John Crepezzi
4cac6713ef Fix memcached client fetch for key not found
The memcached client wasn't correctly handling looking up a key that
didn't exist.  Now we only try to push the expiration forward if there
is actually a value in memcached.

Also while I'm in here, allow expiration to be left blank.
2020-10-06 01:36:46 -04:00
John Crepezzi
f3b0de745b
Merge pull request #200 from kevinhaendel/master
Added "user-select" option to line numbers & messages
2020-10-06 01:21:16 -04:00
John Crepezzi
cc8a99752f
Merge pull request #271 from mklkj/fix-content-type
Fix contentType header in save request
2020-10-06 01:18:34 -04:00
John Crepezzi
6853d077e7 Merge branch 'master' into fix-content-type 2020-10-06 01:18:22 -04:00
John Crepezzi
80a2b6f0dd
Merge pull request #241 from meseta/master
Add Google Datastore sorage handler
2020-10-06 01:15:24 -04:00
John Crepezzi
4f68b3d7d6 Merge branch 'master' into meseta/master 2020-10-06 01:13:07 -04:00
John Crepezzi
ef0ca40533 Downgrade pg for now
Will make a PR to use the new APIs soon
2020-10-06 00:54:12 -04:00
John Crepezzi
f372ef18de
Merge pull request #345 from seejohnrun/fix-json-highlighting
Use the now-separate json mode for json highlighting
2020-10-06 00:37:21 -04:00
John Crepezzi
181a3a2bfa Use the now-separate json mode for json highlighting
Closes #267
2020-10-06 00:36:41 -04:00
John Crepezzi
61d08afb3b
Merge pull request #344 from seejohnrun/upgrade-highlight-js
Update highlight JS to the most recent version (10.2.1)
2020-10-06 00:10:59 -04:00
John Crepezzi
1ba025328d Update highlight JS to the most recent version 2020-10-06 00:07:07 -04:00
John Crepezzi
a79fb39f54 Merge branch 'master' of github.com:seejohnrun/haste-server 2020-10-05 23:52:13 -04:00
John Crepezzi
3a72d74537 Fix security vulnerabilities from outdated packages
Closes #258
2020-10-05 23:50:28 -04:00