A Nostr relay that only accepts GM notes once a day. Comes with a bot to fetch some stats about your GMs.
- wss://gm.swarmstr.com
Simply add it to your relay list & forget it. It will collect all your GMs daily.
If you'd like to run your own instance or modify relays behavior (eg. accept different kind of notes), here's how to do it:
- Go: Ensure you have Go installed on your system. You can download it from here.
git clone https://github.com/ptrio42/gm-relay.git
cd gm-relay
cp .env.example .env
# in foreground
docker compose up --build
# in background
docker compose up --build -d
http://localhost:3336
server {
server_name gm.swarmstr.com;
location / {
proxy_pass http://localhost:3336;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
sudo certbot --nginx -d gm.swarmstr.com
This project is licensed under the MIT License.