Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kphrx/noxir
Nostr Relay in Elixir with Mnesia
https://github.com/kphrx/noxir
nostr nostr-relay
Last synced: 3 months ago
JSON representation
Nostr Relay in Elixir with Mnesia
- Host: GitHub
- URL: https://github.com/kphrx/noxir
- Owner: kphrx
- License: mit
- Created: 2023-11-04T19:47:47.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-30T14:55:44.000Z (3 months ago)
- Last Synced: 2024-10-08T01:22:12.004Z (3 months ago)
- Topics: nostr, nostr-relay
- Language: Elixir
- Homepage: http://kpherox.dev/noxir/
- Size: 175 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Noxir
Nostr Relay in Elixir with Mnesia.
## Installation
### Build from source
1. Clone source code from git.
```console
$ git clone https://github.com/kphrx/noxir
```1. Build application.
```console
$ mix deps.get --only prod
Resolving Hex dependencies...
$ MIX_ENV=prod mix compile
Generated noxir app
```1. Starting server on `http://localhost:4000`.
```console
$ MIX_ENV=prod mix run --no-halt
[info] Running Noxir.Router with Bandit 1.1.2 at 0.0.0.0:4000 (http)
```### Docker Compose
1. Overwrite environment and docker image tag, and scale config to `compose.override.yml`.
```yml
version: '3'services:
app:
environment:
RELAY_NAME: ""
RELAY_DESC: ""
OWNER_PUBKEY: ""
OWNER_CONTACT: ""
deploy:
replicas: 3
```1. Start container.
```console
$ docker compose up -d
[+] Running 3/3
✔ Container noxir-app-1 Started
✔ Container noxir-app-2 Started
✔ Container noxir-app-3 Started
```### Docker
- `edge`: this tag created from `master` branch.
- `latest`: this tag created from latest release version.```console
$ docker run -it --rm ghcr.io/kphrx/noxir:edge
```