Skip to content

feat: read database from project_root/.nostr#92

Merged
cameri merged 17 commits intomainfrom
fix/many-bugs
Dec 21, 2022
Merged

feat: read database from project_root/.nostr#92
cameri merged 17 commits intomainfrom
fix/many-bugs

Conversation

@cameri
Copy link
Owner

@cameri cameri commented Dec 21, 2022

Description

  1. Move $HOME/.nostr to <project_root>/.nostr
  2. Use stricter rate limits.
  3. Reject duplicate subscriptions.
  4. Default min pool size during development is now zero. Does not affect running on production.
  5. Read database from $PROJECT_ROOT/.nostr instead of virtual volume pgdata
  6. Mount postgresql.conf correctly.
  7. Add scripts to start/stop the relay to the ./scripts folder.
  8. Update npm scripts to use scripts in the ./scripts folder.
  9. Add script to print Tor hostname.
  10. Increase min pool size and max pool size from 5 to 16 and from 25 to 32 respectively.
  11. Update documentation on how to start using scripts.
  12. Fix migrations not waiting for database to be ready. Also fishes relay crashing on the first run because database is not yet created.
  13. Add full postgressql.conf file.
  14. Read default settings file from $PROJECT_ROOT/settings.sample.json.
  15. Fix wrong type used in subscribe message handler spec.
  16. Rename PORT env var to RELAY_PORt
  17. Fix typescript errors

Related Issue

#91

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Non-functional change (docs, style, minor refactor)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my code changes.
  • All new and existing tests passed.

@cameri cameri self-assigned this Dec 21, 2022
@cameri cameri added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Dec 21, 2022
@cameri cameri changed the title Fix/many bugs feat: read database from project_root/.nostr Dec 21, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication

@cameri cameri merged commit 476757f into main Dec 21, 2022
@cameri cameri deleted the fix/many-bugs branch December 21, 2022 06:42
@github-actions
Copy link

🎉 This PR is included in version 1.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant