Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 2.87 KB

README.md

File metadata and controls

77 lines (59 loc) · 2.87 KB

NosflareDeploy

NosflareDeploy.mp4

Script to deploy the Nosflare serverless Nostr relay to your Cloudflare Worker.

How to use

Download and make the script executable

wget https://raw.githubusercontent.com/PastaGringo/NosflareDeploy/main/NosflareDeploy.sh
chmod +x ./NosflareDeploy.sh

Run the script

./NosflareDeploy.sh

-------------------------- NosflareDeploy v1.0 ---------------------------
    _   __           ______                ____             __           
   / | / /___  _____/ __/ /___  ____ ___  / __ \___  ____  / /___  __  __
  /  |/ / __ \/ ___/ /_/ / __ \/ __// _ \/ / / / _ \/ __ \/ / __ \/ / / /
 / /|  / /_/ (__  ) __/ / /_/ / /  /  __/ /_/ /  __/ /_/ / / /_/ / /_/ / 
/_/ |_/\____/____/_/ /_/\__,_/_/   \___/_____/\___/ .___/_/\____/\__, /  
                                                 /_/            /____/   
-------------------------- NosflareDeploy v1.0 ---------------------------

Current dir: /home/pastadmin/Apps/TEMP
Hide my infos: disabled

Checking if variables have been set INTO the script (how-to: nano ./NosflareDeploy.sh) ...

❌ VAR $CLOUDFLARE_API_TOKEN    :
❌ VAR $relayURL                :
❌ VAR $relayInfo_name          :
❌ VAR $relayInfo_description   :
❌ VAR $relayInfo_pubkey        :
❌ VAR $relayInfo_contact       :
❌ VAR $relayInfo_pubkey        :

[ERROR] At least one variable is missing. You need to set all the variables before starting the script. Exiting. Bye

Update the script variables with your infos

# Please update variables below before running the script
##################################################################################################
# You can create your API token from your Cloudflare account here: https://dash.cloudflare.com/profile/api-tokens
# Use template "Edit Cloudflare Workers" or create a custom one for workers
CLOUDFLARE_API_TOKEN=""
relayInfo_name=""
# Full domain of the relay. Ex: relay.domain.tld. You need to have the domain.tld zone available in your Cloudflare domain list.
relayURL=""
relayInfo_description=""
#pubkey hex format, you can use damus convertor to convert your npub to hex : https://damus.io/key/
relayInfo_pubkey=""
relayInfo_contact=""
relayIcon_URL=""
# Set to 1 if you need to hide your info during the wrangler whoami & CF API KEY display (maybe you want to record your session script?)
hide_whoami_infos=0

How to upgrade your Nosflare relay with the script

nano ./DeployNosflare.sh

Upgrade your Nosflare relay with the script

WIP

Don't hesitate to open new issues if you find some bugs into the script ⚡

Known bug