-
-
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ The program will automate the following steps: | |
|
||
1. Install necessary dependencies | ||
2. Set up a firewall | ||
3. Configure nginx | ||
4. Obtain a TLS certificate for HTTPS | ||
3. Configure Nginx | ||
4. Obtain a SSL/TLS certificate for HTTPS | ||
5. Install the relay software | ||
6. Set up a systemd service for your relay | ||
|
||
|
@@ -87,14 +87,14 @@ gpg --verify rwz-x.x.x-manifest.sha512sum.asc | |
Here's the command to run for the latest version of `rwz`: | ||
|
||
```sh | ||
gpg --verify rwz-0.3.0-alpha1-manifest.sha512sum.asc | ||
gpg --verify rwz-0.3.0-alpha2-manifest.sha512sum.asc | ||
``` | ||
|
||
You should see output similar to the following if the verification was successful: | ||
|
||
```sh | ||
gpg: assuming signed data in 'rwz-0.3.0-alpha1-manifest.sha512sum' | ||
gpg: Signature made Thu Sep 26 21:04:47 2024 EDT | ||
gpg: assuming signed data in 'rwz-0.3.0-alpha2-manifest.sha512sum' | ||
gpg: Signature made Thu 03 Oct 2024 07:40:12 PM UTC | ||
gpg: using RSA key 252F57B9DCD920EBF14E6151A8841CC4D10CC288 | ||
gpg: Good signature from "NODE-TEC Devs <[email protected]>" [unknown] | ||
gpg: aka "[jpeg image of size 5143]" [unknown] | ||
|
@@ -124,13 +124,13 @@ sha512sum --check rwz-x.x.x-manifest.sha512sum | |
Here's the command to run for the latest version of `rwz`: | ||
|
||
```sh | ||
sha512sum --check rwz-0.3.0-alpha1-manifest.sha512sum | ||
sha512sum --check rwz-0.3.0-alpha2-manifest.sha512sum | ||
``` | ||
|
||
If the verification was successful you should see the output similar to the following: | ||
|
||
```sh | ||
rwz-0.3.0-alpha1-x86_64-linux-gnu.tar.gz: OK | ||
rwz-0.3.0-alpha2-x86_64-linux-gnu.tar.gz: OK | ||
``` | ||
|
||
By completing the above steps you will have successfully verified the integrity of the binary. | ||
|
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.