---
title: リレーサーバーを立ててみた(仮)
tags: 
author: [きりの](https://www.docswell.com/user/imksoo)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/PJR634Q679.jpg?width=480
description: リレーサーバーを立ててみた(仮) by きりの
published: February 22, 23
canonical: https://www.docswell.com/s/imksoo/5YWNQ9-2023-02-22-235723
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/PJR634Q679.jpg)

リレーサーバーを立ててみた(仮)
- relay-jp.nostr.wirednet.jpを支えるサービス きりの (kirino.minato@gmail.com)


# Page. 2

![Page Image](https://bcdn.docswell.com/page/PEXM425D7X.jpg)

Profile
◆
Name:
◼
◼
きりの みなと
Kirino Minato / imksoo
◆
SNS
◼
◆
Work:
◼
◼
◼
◼
–
–
–
–
Cloud Architect (Azure &amp; AWS)
Storage, Backup &amp; DR Engineer
IT Service &amp; Operation Designer
◼
◆
Like:
◼
◼
Drive
Home rack (Jitaku rack)
Twitter @imksoo
Mastodon
@imksoo@mastodon.chotto.moe
@imksoo@jitakurack.chotto.moe
@imksoo@mstdn.blue.wirednet.jp
tootsearch
Nostr
– imksoo@nostr.wirednet.jp
– Relay service:
Public) relay.nostr.wirednet.jp
Japan-regional) relay-jp.nostr.wirednet.jp
2


# Page. 3

![Page Image](https://bcdn.docswell.com/page/3EKGZM6DJD.jpg)

Nostr relay – relay.nostr.wirednet.jp
◆
Public Nostr relay for global.
◼
◆
Launched at Mon Feb 06, 2023, 10:25:52 GMT+0900 (日本標準時) (16 days)
Architecture
◼
An EC2 instance in ap-northeast-1 with nostr-rs-relay on Docker Compose
Users
CloudFront
EC2
(Nostr relay)
3


# Page. 4

![Page Image](https://bcdn.docswell.com/page/L73NDY6P75.jpg)

Nostr relay – relay-jp.nostr.wirednet.jp
◆
CloudFront “Geo restriction”
◼
◼
Restriction type: Whitelist
Countries: JP
Geo restriction
(JP)
Users
CloudFront
EC2
(Nostr relay)
4


# Page. 5

![Page Image](https://bcdn.docswell.com/page/87DWP5V3JG.jpg)

Installation
◆
◆
◆
◆
◆
Install Docker Compose
git pull https://github.com/scsibug/nostr-rs-relay.git
docker build –t nostr-rs-relay .
vim docker-compose.yml
version: &quot;3.7&quot;
docker compose up -d
services:
nostr-rs-relay:
image: nostr-rs-relay:latest
sysctls:
net.core.somaxconn: 32768
net.ipv4.ip_local_port_range: &quot;10000 60999&quot;
volumes:
- &quot;./db:/usr/src/app/db&quot;
- &quot;./favicon.ico:/usr/src/app/favicon.ico&quot;
- &quot;./config.toml:/usr/src/app/config.toml&quot;
ports:
- &quot;8080:8080&quot;
5


# Page. 6

![Page Image](https://bcdn.docswell.com/page/VJP9NGVPE8.jpg)

CPU Utilization (%)
なんかあったっけ？
6


# Page. 7

![Page Image](https://bcdn.docswell.com/page/2EVMK6ZVEQ.jpg)

Network Traffics (In/Out)
7


# Page. 8

![Page Image](https://bcdn.docswell.com/page/57GGQN417L.jpg)

CloudFront requests
8


# Page. 9

![Page Image](https://bcdn.docswell.com/page/4EQXKQGN7P.jpg)

9


# Page. 10

![Page Image](https://bcdn.docswell.com/page/KJ46PN5371.jpg)

fin.


