1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-12-27 22:50:11 +01:00
Commit graph

364 commits

Author SHA1 Message Date
fe6697a6f1
Fix wrong path being used in docker-compose.yml
Forgot to change it after moving the directory from /usr/src/app to /app in Dockerfile
2021-02-14 17:46:18 +01:00
3606db4d90
Make Docker image smaller and fix issue with ignore files
* Exclude a bunch of files and directories not needed for Docker image
* Exclude dev dependencies for Docker image build by introducing a production build script
* Using a different alpine base image and multi-stage build reduces the Docker image by roughly 35 MB alone
* Move babel to dev dependencies
* Fix highlight.min.js accidentally being ignored
2021-02-13 10:35:12 +01:00
062bdb3dec
Install all storage client deps by default and move them to optional deps
* Moving the storage dependencies again into package.json but to the optionalDependencies
* Add build script that excludes the optional dependencies for manual installation of these
* Add a comment in Dockerfile on how to use the minimal build script
2021-02-13 07:46:01 +01:00
8922925491
Merge changes from niekcandaele/feature/docker-support
* Add .dockerignore
* Add docker-compose.yml version number
* Use docker-managed volume instead of directory for files

Co-authored-by: niekcandaele <22315101+niekcandaele@users.noreply.github.com>
2021-02-12 15:43:32 +01:00
94d2054da7
Remove storage client packages and update package-lock
These packages should be installed on demand and not by default
2021-02-12 14:28:22 +01:00
4e668e0636
Add Docker support and change default listening address
* Add Dockerfile
* Add docker-compose.yml
* Set default host address to null to make expressjs listen on both ipv4 and ipv6
2021-02-12 14:21:36 +01:00
niekcandaele
801bb8046c Dont install storage dependencies separately 2020-10-21 10:29:30 +02:00
niekcandaele
2deac0c101 Sync docker ignore with gitignore 2020-10-21 10:29:20 +02:00
dependabot[bot]
592e484d35
Bump eslint from 7.9.0 to 7.10.0 (#10)
Bumps [eslint](https://github.com/eslint/eslint) from 7.9.0 to 7.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.9.0...v7.10.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-01 01:22:07 +02:00
Paweł
8ad927810f
Added all dependencies to package.json (#11)
It seems to be a better practice to keep all dependencies documented in repo and package-lock, so there will be no issues with installing them manually. Even though there are more deps that self-hosters might not use, it makes it easier to change configuration and manage some things like docker images (see #8).
2020-10-01 01:12:07 +02:00
zneix
7808ccf009
Rewrote key generator tests, fixed vowels
-Tests were not brought up to date with some updates that were done to key generator modules.
-Apparently original creator had no idea that 'y' is a vowel; fixed this issue and reflected changes in actual files.
2020-09-23 01:07:32 +02:00
Niek Candaele
0f01dc4d55 Add basic Docker image 2020-09-22 20:18:02 +02:00
zneix
d2c5641886
0.2.5 2020-09-20 18:22:15 +02: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
dependabot[bot]
63d2568f91
Bump eslint from 7.8.1 to 7.9.0 (#5)
Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.9.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 16:54:38 +02:00
twiclo
f8c3a58b3a
Updated highlightjs to support many more languages (#6)
We updated highlight.min.js library to newer version (v9.12.0 -> 10.2.0) and added support for many languages. Updated extensionMap accordingly and also removed from it some unnecessary aliases, like 'json' since they are already natively supported by highlight.min.js library.
There also a new documentation page under docs/languages.md which lists all supported aliases.
2020-09-18 16:19:34 +02:00
zneix
3d501c980f
Made app.js proper Class, added support for non-absolute path
Something that would solve relevant upstream issues/prs: seejohnrun/haste-server#53 seejohnrun/haste-server#140
2020-09-05 18:13:49 +02:00
zneix
7c7fd10c29
Updated haste-client information 2020-09-05 18:06:43 +02:00
zneix
7d476a668e
Rewritten postgresql document store
This is experimental as there are couple issues with attemting to set duplicate keys and connecting on startup, but it's working regardless of those issues.\nMaybe I can look into solving those later if needed
2020-09-03 19:24:34 +02:00
dependabot[bot]
e3e45bee3c
Bump mocha from 8.1.2 to 8.1.3 (#2)
Bumps [mocha](https://github.com/mochajs/mocha) from 8.1.2 to 8.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.1.2...v8.1.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-02 16:23:04 +02:00
dependabot[bot]
7171809d20
Bump eslint from 7.7.0 to 7.8.1 (#4)
Bumps [eslint](https://github.com/eslint/eslint) from 7.7.0 to 7.8.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-02 16:21:45 +02:00
zneix
04e1f09fed
Patched POST API bug
It is no longer possible to make a POST request with no body content and make a "ghost key" - which upon requesting returns 404, but it considered as a taken key
2020-09-02 16:18:47 +02:00
zneix
7de68695fe
Replaced all callbacks with promises in document stores 2020-09-02 16:16:54 +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
a4cf027900
Switched to promises in file document store 2020-08-30 03:27:38 +02:00
zneix
b4f42219e5
Added proper documentation 2020-08-29 05:29:39 +02:00
zneix
1efc62a8c5 Rewrote (and fixed) dictionary key generator 2020-08-29 00:40:36 +02:00
zneix
2e2b69c43c Rewrote phonetic key generator 2020-08-29 00:39:07 +02:00
zneix
15b8899629 rewrote file document storage 2020-08-29 00:06:49 +02:00
zneix
d303416dba fixed eslint formatting 2020-08-28 23:57:50 +02:00
Paweł
9255094ec4
Fixed dependabot's file
Maybe long spacing is wrong in general
2020-08-28 04:51:54 +02:00
Paweł
6edab93976
Fixed dependabot's file
I guess it doesn't like tabs, had to switch to Spaces: 4 indent
2020-08-28 04:50:00 +02:00
zneix
daabcf7dcd Config rewrite 2020-08-28 04:46:48 +02:00
zneix
e4eeec3d27 Updated eslint rules 2020-08-28 04:39:03 +02:00
zneix
4a583a52ce Enabled dependabot 2020-08-28 04:31:58 +02:00
zneix
bd5c7f9261 Added mongodb as document store adapter 2020-08-27 00:42: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
9b0a5ff0a3
Merge pull request #291 from j3parker/s3-document-store
Add an Amazon S3 document store
2020-02-27 11:39:12 -05:00
Jacob Parker
1fff48568f Document the IAM permissions 2019-07-08 16:59:04 +01:00
Jacob Parker
b4c666fbcf Add an Amazon S3 document store 2019-06-28 19:25:49 +01:00
John Crepezzi
b866c33c93
Merge pull request #173 from sebastiansterk/master
removed padding for #box for correct view
2019-04-05 17:30:42 -04:00
John Crepezzi
f3838ab4a8
Merge pull request #251 from seejohnrun/handle-redis-disconnect
Handle redis error and re-establish connection
2018-09-19 10:38:34 -04:00
John Crepezzi
bf2b1c957a Handle redis error and re-establish connection 2018-09-19 10:37:34 -04:00
John Crepezzi
ee1c1c0856
Merge pull request #231 from seejohnrun/ensure-raw-utf8
Added charset to raw content type
2018-07-12 14:26:05 -04:00
John Crepezzi
b087ac8dd1 Added charset to raw content type
Closes #230
2018-07-12 14:25:27 -04:00