-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#51)
- Loading branch information
1 parent
2674764
commit 727d3a9
Showing
38 changed files
with
924 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package relays | ||
|
||
const BinaryDestDir = "/usr/local/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package khatru29 | ||
|
||
const DownloadURL = "https://github.com/nodetec/relays/releases/download/v0.3.0/relay29-0.4.0-khatru29-x86_64-linux-gnu.tar.gz" | ||
const BinaryName = "khatru29" | ||
const BinaryFilePath = "/usr/local/bin/khatru29" | ||
const NginxConfigFilePath = "/etc/nginx/conf.d/khatru29.conf" | ||
const DataDirPath = "/var/lib/khatru29" | ||
const ServiceName = "khatru29" | ||
const EnvFilePath = "/etc/systemd/system/khatru29.env" | ||
const EnvFileTemplate = `PORT="5577" | ||
DOMAIN="{{.Domain}}" | ||
RELAY_NAME="Khatru29" | ||
RELAY_PRIVKEY="{{.PrivKey}}" | ||
RELAY_DESCRIPTION="Khatru29 Nostr Relay" | ||
RELAY_CONTACT="{{.RelayContact}}" | ||
DATABASE_PATH=/var/lib/khatru29/db | ||
` | ||
const ServiceFilePath = "/etc/systemd/system/khatru29.service" | ||
const ServiceFileTemplate = `[Unit] | ||
Description=Khatru29 Nostr Relay Service | ||
After=network.target | ||
[Service] | ||
Type=simple | ||
User=nostr | ||
Group=nostr | ||
WorkingDirectory=/home/nostr | ||
EnvironmentFile=/etc/systemd/system/khatru29.env | ||
ExecStart=/usr/local/bin/khatru29 | ||
Restart=on-failure | ||
[Install] | ||
WantedBy=multi-user.target | ||
` | ||
const RelayName = "Khatru29" | ||
const GithubLink = "https://github.com/fiatjaf/relay29" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.