1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-01 09:40:21 +01:00
Commit graph

53 commits

Author SHA1 Message Date
f93aac983a
Set Content-Type of raw paste to plaintext 2021-02-14 20:19:19 +00:00
zneix
509971c5ac
Switched to proper babel-minify lib
I Decided to remove static asset compression from actual code to make runtime faster and moved it to package.json script which only builds application once on installation.\nAfter this commit, after every update that changed static/application.js, you also need to run npm run-script build after git pull
2020-09-20 18:18:38 +02:00
zneix
45b4ce87a8
Updated config documentation, changed env vars
Removed HASTE_ prefix as it would not work on evironments like Heroku, relevant comment: https://github.com/zneix/haste-server/pull/7#issuecomment-695790378
2020-09-20 16:39:49 +02:00
zneix
58c37bf677
Copying example config in case config doesn't exist & env vars
This change makes it possible to start haste server with no further configuration, supporting "out-of-box" solutions for Heroku / Dokku and preferrably other platforms
2020-09-20 12:42:46 +02:00
zneix
c165781b18
Rewrote redis storage handler
also removed unnecessary newline in file storage handler
2020-09-01 23:43:54 +02:00
zneix
d303416dba fixed eslint formatting 2020-08-28 23:57:50 +02:00
zneix
daabcf7dcd Config rewrite 2020-08-28 04:46:48 +02:00
zneix
f3288c4e39 Made server run async 2020-08-27 00:39:06 +02:00
zneix
78aabf90bb Refactored static files compression 2020-08-26 16:04:20 +02:00
zneix
c585e3b815 Huge refactor, switched to express 2020-08-26 04:54:58 +02:00
zneix
06315a91a8 security and deprecation fixes 2020-08-25 22:57:13 +02:00
John Crepezzi
318c5f7ba6 Upgrade uglify and simplify usage
- Upgrade to the most recent version of uglify
- Use the `UglifyJS.minify(code)` helper which does exactly what we want
2017-10-31 21:19:22 -04:00
John Crepezzi
c5b859ec98 Bump node engine version & fix asset compression on start 2017-07-11 21:13:33 -04:00
John Crepezzi
bf1dbb68b8 Fix eslint 2017-06-26 12:38:17 -04:00
John Crepezzi
934aaf7f51 Don't expire static documents on raw read 2017-01-28 11:57:25 -05:00
John Crepezzi
84c909a5db Added user-configurable rate limiting 2016-03-06 16:20:40 -05:00
John Crepezzi
ab029eae2f Added postgres adapter 2014-06-09 16:50:43 -04:00
John Crepezzi
10623873e8 Allow host setting by ENV 2012-09-27 12:01:00 -04:00
John Crepezzi
8f0d6260b0 change how redistogo install works 2012-09-27 11:50:12 -04:00
John Crepezzi
4efc5d47d9 Allow redistogo 2012-09-27 11:46:53 -04:00
John Crepezzi
814a49812a Update server config path 2012-09-19 14:28:52 -04:00
John Crepezzi
e0610bc1be Fix multiple document loading
Closes #32
2012-08-13 11:33:20 -04:00
John Crepezzi
f37d1ad401 Clean up some code and move document stores into subfolder 2012-01-21 15:19:55 -05:00
John Crepezzi
cc65e98940 Added support for phonetic key naming
Closes #7
2012-01-07 11:35:11 -05:00
John Crepezzi
44f7ab3f33 Added the ability to retrieve raw documents
Closes #10
2011-12-16 07:57:49 -05:00
John Crepezzi
92e0f579ca Kick expirations back on view 2011-11-28 01:13:14 -05:00
John Crepezzi
0875ba6252 Auto-compress javascript assets 2011-11-27 15:49:17 -05:00
John Crepezzi
85fac80a6d Put staticCache back in 2011-11-27 14:47:36 -05:00
John Crepezzi
fb0c439879 temporarily remove staticCache 2011-11-23 22:01:22 -05:00
John Crepezzi
12aa622c2d Clean up the router 2011-11-23 16:34:22 -05:00
John Crepezzi
d6468ad5fb Fixed bug that was preventing document lookup 2011-11-23 15:45:28 -05:00
John Crepezzi
167c7c4adb Use the new router 2011-11-23 13:14:18 -05:00
John Crepezzi
e403549e13 Added static document loading on start 2011-11-22 09:22:37 -05:00
John Crepezzi
9ed330bdae Make static asset caching an option 2011-11-21 23:00:28 -05:00
John Crepezzi
d0e3e4cd02 Support for redis expiration 2011-11-21 22:03:50 -05:00
John Crepezzi
a9e29c2986 Added support for haste maximum size 2011-11-21 10:17:23 -05:00
John Crepezzi
60f412b7bc Added haste to version control 2011-11-18 18:30:31 -05:00
John Crepezzi
83b8f3f52d Generalize store 2011-11-18 18:04:24 -05:00
John Crepezzi
fec02cfead Move storage mechanism to new object 2011-11-18 17:54:57 -05:00
John Crepezzi
b173cdd144 preparse static elements rather than fs'ing them 2011-11-18 17:36:35 -05:00
John Crepezzi
0fe0306caa Logger configuration 2011-11-18 17:26:25 -05:00
John Crepezzi
93435715f2 Fix loggin 2011-11-18 16:58:21 -05:00
John Crepezzi
6bdd7d7fc5 Host and port made configurable 2011-11-18 16:57:23 -05:00
John Crepezzi
b159817a27 Added configuration and made key length configurable 2011-11-18 16:54:16 -05:00
John Crepezzi
d69839b2fb Push state for new documents fixed 2011-11-18 16:37:38 -05:00
John Crepezzi
7b2d0f549d Remove some finished TODOs 2011-11-18 16:25:53 -05:00
John Crepezzi
4f00d3c71a Remove url from static_handler.js 2011-11-18 16:00:05 -05:00
John Crepezzi
13e497993f Separate logic into proper places 2011-11-18 15:51:38 -05:00
John Crepezzi
6bac45efe2 More work on the server 2011-11-18 15:44:28 -05:00
John Crepezzi
b35c89a472 Added duplicate functionality 2011-11-18 15:18:38 -05:00