397 Commits

Author SHA1 Message Date
Anton Livaja
5a8107f73c feat(utils): refactor settings to use yaml 2023-02-02 00:19:26 -05:00
Anton Livaja
8b8c4b4eaa chore: patch vuln in knex and pin dotenv 2023-02-02 00:19:26 -05:00
Anton Livaja
bee6302dd5 feat: add yaml parser js-yaml 2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
2618a4d2dc feat: add pay-to-relay 2023-02-02 00:19:26 -05:00
snyk-bot
779f7b7fe6 fix: upgrade ws from 8.11.0 to 8.12.0
Snyk has created this PR to upgrade ws from 8.11.0 to 8.12.0.

See this package in npm:
https://www.npmjs.com/package/ws

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-02-01 02:48:43 -05:00
snyk-bot
a8f44cd717 fix: upgrade @noble/secp256k1 from 1.7.0 to 1.7.1
Snyk has created this PR to upgrade @noble/secp256k1 from 1.7.0 to 1.7.1.

See this package in npm:
https://www.npmjs.com/package/@noble/secp256k1

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-02-01 02:48:10 -05:00
semantic-release-bot
3f6b5e4b11 chore(release): 1.18.0 [skip ci]
# [1.18.0](https://github.com/Cameri/nostream/compare/v1.17.3...v1.18.0) (2023-01-25)

### Features

* support db read replicas ([0903979](09039791f1))
v1.18.0
2023-01-25 05:28:16 +00:00
Ricardo Arturo Cabral Mejía
09039791f1
feat: support db read replicas
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-25 00:13:01 -05:00
Ricardo Arturo Cabral Mejía
b24b0283b0
chore: use postgres:14 2023-01-24 23:09:11 -05:00
semantic-release-bot
ad0e853298 chore(release): 1.17.3 [skip ci]
## [1.17.3](https://github.com/Cameri/nostream/compare/v1.17.2...v1.17.3) (2023-01-25)

### Bug Fixes

* remove tor-proxy from docker-compose.yml ([ee62d46](ee62d4664e))
v1.17.3
2023-01-25 01:52:46 +00:00
Ricardo Arturo Cabral Mejía
ee62d4664e
fix: remove tor-proxy from docker-compose.yml 2023-01-24 20:45:12 -05:00
Ricardo Arturo Cabral Mejía
8753541509
docs: update links / add contributors 2023-01-18 15:38:13 -08:00
semantic-release-bot
d4f5fa522b chore(release): 1.17.2 [skip ci]
## [1.17.2](https://github.com/Cameri/nostream/compare/v1.17.1...v1.17.2) (2023-01-18)

### Bug Fixes

* acq conn recommendation ([0d53069](0d530699a0))
* don't crash when unable to acquire connection ([a519f4f](a519f4f36d))
v1.17.2
2023-01-18 01:16:53 +00:00
Ricardo Arturo Cabral Mejía
0d530699a0 fix: acq conn recommendation
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-17 19:29:34 -05:00
Ricardo Arturo Cabral Mejía
5fb8c76a17 docs: add DB_ACQUIRE_CONNECTION_TIMEOUT info
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-17 19:29:34 -05:00
Ricardo Arturo Cabral Mejía
c671e8bfbf chore: add DB_ACQUIRE_CONNECTION_TIMEOUT env var
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-17 19:29:34 -05:00
Ricardo Arturo Cabral Mejía
4f62475a1a chore: refactor abortable requests
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-17 19:29:34 -05:00
Ricardo Arturo Cabral Mejía
a519f4f36d fix: don't crash when unable to acquire connection
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-17 19:29:34 -05:00
semantic-release-bot
26ae58cc76 chore(release): 1.17.1 [skip ci]
## [1.17.1](https://github.com/Cameri/nostream/compare/v1.17.0...v1.17.1) (2023-01-17)

### Bug Fixes

* load settings from local disk ([0151123](015112329e))
v1.17.1
2023-01-17 12:09:40 +00:00
Ricardo Arturo Cabral Mejía
015112329e
fix: load settings from local disk 2023-01-17 07:02:24 -05:00
semantic-release-bot
45348c0415 chore(release): 1.17.0 [skip ci]
# [1.17.0](https://github.com/Cameri/nostream/compare/v1.16.0...v1.17.0) (2023-01-16)

### Bug Fixes

* 🐛 docker permissions and environment variable names ([8326c8a](8326c8a0a4))
* 🐛 error retrying the connection ([3eb9d83](3eb9d836b9))
* 🐛 volume permissions and error messages ([d955a7c](d955a7c653))
* deleted_at not saved in UTC tz ([297a07e](297a07e281))
* excessive cache writes ([273dcc6](273dcc6530))
* integration tests ([dbf8a7f](dbf8a7f345))
* integration tests ([1db3343](1db3343ef8))
* tor_proxy ([92640f2](92640f2d3b))

### Features

* add support to dotenv files ([c439dc8](c439dc85df))
* automatic onion services ([086b750](086b750528))
* automatic onion services ([3731d03](3731d03230))

### Reverts

* some forgotten changes in docker ([d8c5c26](d8c5c26f32))
v1.17.0
2023-01-16 06:35:09 +00:00
Ricardo Arturo Cabral Mejía
297a07e281 fix: deleted_at not saved in UTC tz
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-16 01:31:01 -05:00
Ricardo Arturo Cabral Mejía
dbf8a7f345 fix: integration tests 2023-01-16 01:31:01 -05:00
Ricardo Arturo Cabral Mejía
1db3343ef8 fix: integration tests
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-16 01:31:01 -05:00
Ricardo Arturo Cabral Mejía
3fa30724d7 test: nip-09 deleted events
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-16 01:31:01 -05:00
Ricardo Arturo Cabral Mejía
273dcc6530
fix: excessive cache writes
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-01-14 22:43:54 -05:00
Ricardo Arturo Cabral Mejía
92640f2d3b
fix: tor_proxy 2023-01-14 17:02:03 -05:00
Juan Angel
67a9f10289 docs: 📝 documented new environment var 2023-01-14 14:14:20 +01:00
Juan Angel
42e55303a9 test: implemented unit tests 2023-01-14 13:47:20 +01:00
Juan Angel
3eb9d836b9 fix: 🐛 error retrying the connection
If the first connection attempt failed. Later it was given as connected
2023-01-14 13:47:20 +01:00
Juan Angel
d955a7c653 fix: 🐛 volume permissions and error messages 2023-01-14 13:47:20 +01:00
Juan Angel
8326c8a0a4 fix: 🐛 docker permissions and environment variable names 2023-01-14 13:47:20 +01:00
Juan Angel
294d7c0d2d style: 🚨 fix linter warning 2023-01-14 13:47:20 +01:00
Juan Angel
086b750528 feat: automatic onion services 2023-01-14 13:47:20 +01:00
juanAngel
d8c5c26f32 revert: some forgotten changes in docker 2023-01-14 13:47:20 +01:00
Juan Angel
3731d03230 feat: automatic onion services 2023-01-14 13:47:20 +01:00
dependabot[bot]
7d9ef0e216 chore(deps): bump knex from 2.3.0 to 2.4.0
Bumps [knex](https://github.com/knex/knex) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/compare/2.3.0...2.4.0)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 00:55:47 -05:00
Juan Angel
c439dc85df feat: add support to dotenv files 2023-01-02 23:23:28 +01:00
semantic-release-bot
c7feeb0565 chore(release): 1.16.0 [skip ci]
# [1.16.0](https://github.com/Cameri/nostream/compare/v1.15.1...v1.16.0) (2022-12-30)

### Features

* add local dev configuration ([e95d449](e95d449b23))
v1.16.0
2022-12-30 21:38:17 +00:00
Kevin Smith
b41cff48c9 docs: add instructions for running local environment 2022-12-30 16:33:15 -05:00
Kevin Smith
e95d449b23 feat: add local dev configuration
Includes a reverse-proxy and locally-trusted TLS certs via mkcert, and uses a hostname that already points to 127.0.0.1 without having to modify the hosts file
2022-12-30 16:33:15 -05:00
semantic-release-bot
1073ef20c4 chore(release): 1.15.1 [skip ci]
## [1.15.1](https://github.com/Cameri/nostream/compare/v1.15.0...v1.15.1) (2022-12-29)

### Bug Fixes

* bump json5 dep ([fa1a9af](fa1a9af088))
* handle malformed incoming messages ([ea2621f](ea2621f96e))
* reject sub with unsafe ints in since/until ([fe9ad92](fe9ad92b44))
v1.15.1
2022-12-29 17:20:45 +00:00
Ricardo Arturo Cabral Mejía
ea2621f96e fix: handle malformed incoming messages
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-12-29 12:13:47 -05:00
Ricardo Arturo Cabral Mejía
fe9ad92b44 fix: reject sub with unsafe ints in since/until
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-12-29 11:38:23 -05:00
Ricardo Arturo Cabral Mejía
fa1a9af088 fix: bump json5 dep 2022-12-29 10:44:52 -05:00
Ricardo Arturo Cabral Mejía
939371f1e8 chore: add sinon to dev deps 2022-12-29 10:44:52 -05:00
semantic-release-bot
c39d84ee43 chore(release): 1.15.0 [skip ci]
# [1.15.0](https://github.com/Cameri/nostream/compare/v1.14.0...v1.15.0) (2022-12-29)

### Features

* add WORKER_COUNT env var ([a1b83b7](a1b83b7c56))
* fallback to PORT env var when listening ([1b50085](1b5008567b))
v1.15.0
2022-12-29 06:17:18 +00:00
Ricardo Arturo Cabral Mejía
efd4c00a8e chore: allow filter with limit zero
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-12-29 01:10:05 -05:00
Ricardo Arturo Cabral Mejía
bb63d60b8b
docs: update 1-click railway deploy button
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-12-28 22:14:51 -05:00
Ricardo Arturo Cabral Mejía
adee7f3ea3 chore: do not print env
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-12-28 22:07:11 -05:00