Conversation
Contributor
zupzup
commented
Feb 20, 2026
- Cleanup Static File Server, Proxy and Email Notifications in bcr-relay
- In preparation for moving this repo to Wildcat-Aux
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22 +/- ##
===========================================
+ Coverage 10.23% 23.52% +13.29%
===========================================
Files 13 6 -7
Lines 1465 340 -1125
===========================================
- Hits 150 80 -70
+ Misses 1315 260 -1055 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR removes the proxy and email notification subsystems (including their routes, templates, and DB tables) and simplifies the runtime/container setup accordingly, as part of general cleanup ahead of moving the repo.
Changes:
- Removed proxy and email notification modules, endpoints, and associated utilities/templates.
- Removed notification-related Postgres schema initialization.
- Simplified runtime packaging by dropping static file serving/copying and trimming reported relay features.
Reviewed changes
Copilot reviewed 15 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| static/logo.png | Removed static asset (static file serving no longer exposed). |
| src/util.rs | Removed shared helpers that were only used by proxy/notifications. |
| src/proxy/mod.rs | Removed proxy endpoint implementation and supporting code. |
| src/notification/mod.rs | Removed notification HTTP API and HTML rendering logic. |
| src/notification/* | Removed notification preferences/store/email implementation and templates. |
| src/relay.rs | Removed email-related config fields; relay remains focused on Nostr + rate limiting. |
| src/rate_limit.rs | Removed HTTP-facing rate limiter/RealIp extraction; retained sliding-window limiter for relay policies. |
| src/main.rs | Removed static serving and proxy/notification routes; updated advertised relay features and app state. |
| src/db/mod.rs | Removed creation of notification-specific tables. |
| Dockerfile | Stopped copying static assets into the runtime image. |
| Cargo.toml | Removed several deps, but still includes now-unused direct deps (see comments). |
| Cargo.lock | Reflected dependency graph changes and patch-level updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8ed21f1 to
9dfda0b
Compare
codingpeanut157
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.