Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add .railwayapp with default settings.yaml #176

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions .railwayapp/settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
info:
relay_url: wss://nostream.your-domain.com
name: nostream.your-domain.com
description: A nostr relay written in Typescript.
pubkey: replace-with-your-pubkey-in-hex
contact: [email protected]
payments:
enabled: false
processor: zebedee
feeSchedules:
admission:
- enabled: false
descripton: Admission fee charged per public key in msats (1000 msats = 1 satoshi)
amount: 1000000
whitelists:
pubkeys:
- replace-with-your-pubkey-in-hex
paymentsProcessors:
zebedee:
baseURL: https://api.zebedee.io/
callbackBaseURL: https://nostream.your-domain.com/callbacks/zebedee
ipWhitelist:
- "3.225.112.64"
- "::ffff:3.225.112.64"
network:
maxPayloadSize: 524288
remoteIpHeader: x-forwarded-for
workers:
count: 0
mirroring:
static: []
limits:
invoice:
rateLimits:
- period: 60000
rate: 6
- period: 3600000
rate: 16
ipWhitelist:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
connection:
rateLimits:
- period: 1000
rate: 12
- period: 60000
rate: 48
- period: 3600000
rate: 300
ipWhitelist:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
event:
eventId:
minLeadingZeroBits: 0
kind:
whitelist: []
blacklist: []
pubkey:
minBalance: 0
minLeadingZeroBits: 0
whitelist: []
blacklist: []
createdAt:
maxPositiveDelta: 900
maxNegativeDelta: 0
content:
- description: 64 KB for event kind ranges 0-10 and 40-49
kinds:
- - 0
- 10
- - 40
- 49
maxLength: 65536
- description: 96 KB for event kind ranges 11-39 and 50-max
kinds:
- - 11
- 39
- - 50
- 9007199254740991
maxLength: 98304
rateLimits:
- description: 6 events/min for event kinds 0, 3, 40 and 41
kinds:
- 0
- 3
- 40
- 41
period: 60000
rate: 6
- description: 12 events/min for event kinds 1, 2, 4 and 42
kinds:
- 1
- 2
- 4
- 42
period: 60000
rate: 12
- description: 360 events/hour for event kinds 1, 2, 4 and 42
kinds:
- 1
- 2
- 4
- 42
period: 3600000
rate: 360
- description: 30 events/min for event kind ranges 5-7 and 43-49
kinds:
- - 5
- 7
- - 43
- 49
period: 60000
rate: 30
- description: 24 events/min for replaceable events and parameterized replaceable
events
kinds:
- - 10000
- 19999
- - 30000
- 39999
period: 60000
rate: 24
- description: 60 events/min for ephemeral events
kinds:
- - 20000
- 29999
period: 60000
rate: 60
- description: 720 events/hour for all events
period: 3600000
rate: 720
- description: 2880 events/day for all events
period: 86400000
rate: 2880
whitelists:
pubkeys: []
ipAddresses:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
client:
subscription:
maxSubscriptions: 10
maxFilters: 10
message:
rateLimits:
- description: 240 raw messages/min
period: 60000
rate: 240
- description: 3600 raw messages/hour
period: 3600000
rate: 4800
ipWhitelist:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
2 changes: 2 additions & 0 deletions Dockerfile.railwayapp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ LABEL org.opencontainers.image.licenses=MIT
WORKDIR /app

COPY --from=build /build/dist .
ADD resources /app/resources
COPY .railwayapp/settings.yaml /app/.nostr/settings.yaml

RUN npm install --omit=dev --quiet

Expand Down