initial version
This commit is contained in:
commit
4691f4ea9e
12 changed files with 1479 additions and 0 deletions
22
index.ts
Normal file
22
index.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { type RelayConfig, main } from "./src/main.ts";
|
||||
|
||||
const config: RelayConfig = {
|
||||
allowUnauthedPublish: Boolean(process.env.ALLOW_UNAUTHED_PUBLISH) || false,
|
||||
outsideURL: process.env.RELAY_OUTSIDE_URL || process.env.RELAY_URL!,
|
||||
relay: process.env.RELAY_URL!,
|
||||
name: process.env.RELAY_NAME,
|
||||
description: process.env.RELAY_DESCRIPTION,
|
||||
banner: process.env.RELAY_BANNER,
|
||||
icon: process.env.RELAY_ICON,
|
||||
contact: process.env.RELAY_CONTACT,
|
||||
policy: process.env.RELAY_POLICY,
|
||||
adminPubkey: process.env.ADMIN_PUBKEY,
|
||||
};
|
||||
|
||||
if (
|
||||
!config.relay ||
|
||||
(!config.relay?.startsWith("wss://") && !config.relay?.startsWith("ws://"))
|
||||
)
|
||||
config.relay = "wss://relay.arx-ccn.com";
|
||||
|
||||
main(config);
|
Loading…
Add table
Add a link
Reference in a new issue