SkyPirl Blockchain
  • SkyPirl (Pirl)
    • Docs.Pirl.io
    • About SkyPirl (Pirl)
    • Mission
    • Create SkyPirl 2.0 wallet
    • Restore wallet with secret 12 phrase
    • How to be a Nominator
    • SkyPirl coin specifications
    • Run a validator
    • How to unbound fund
    • How payout works
    • How to vote for Council
    • How to set identity
    • SLASHES
    • Refund of slashed
    • COIN SPECIFICATION
    • Governance and Treasury
    • Telemetry
    • List of wallet addresses not working
    • Spending from the treasury and Burn
    • Mint coins and transfer coins to the treasury
      • Treasury2
    • Burn 2
    • Source Code
    • List of wallets holding coins of burned wallets with PIRL balance at block 3939000
  • About SkyPirl (Pirl)
  • Mission
  • PIRLmeet
    • About Room-House.com
    • Free Trial
    • CINEMA
    • Microphone On-Off
    • Screen Sharing
      • Share—or don't share your audio
      • Video recording tutorial + camera + mp4 video download
    • Hands Up
    • Change the ringtone when giving a raise of hand
    • Stream MP4 videos
    • Stream mp4 video on Firefox browser
    • Cabinet Lock
      • Cabinet Lock account
      • Normal-Demo
      • How can I cabinet lock and keep strangers from entering the room?
      • How can I add people to the room when the room is locked?
    • Text chat
      • Room chat
      • Cabinetlock Chat
      • private chat per video
    • Connect Pirl wallet to Room-House
    • Change cover photo
    • Video title name
    • Setting up you own PIRLmeet
    • How to download videos on youtube, Facebook and convert to mp4 files
    • Use camera beautification App when livestream
    • Room-House can create meetings that last 24/7 and 365 days a year.
    • How does PIRLmeet secure products?
    • Get Pirl coin when playing videos on PIRLmeet
    • Picture
    • OBS Studio
      • Download
      • Screen sharing and front camera
      • Stream video from R-H to Youtube
      • Stream games
      • Stream Video and Record Video and download videos
      • Good quality video settings
      • Edit the frame and choose the recording frame
    • Source Code
  • Game
    • Room-House.com and games
    • Slot Machine
      • Connect the slot machine to the SkyPirl Light Wallet.
      • Connect Room-House.com to the slot machine
  • SkyPirl Light Wallet
  • PIRL Decentralized Charity Foundation (SkyPirl)
  • SkyPirl Community
  • Apps for Android and IOS (PWA)
    • Android
    • Iphone (IOS)
    • Computer-Windows-PC
  • Business Paradigm R-H
    • Use SkyPirl coin to pay in Room-House.com
  • Roadmap
  • Core Team
  • xTer . Technology
    • About xTER SafeContainer
    • xTer Ecosystem
    • xTer SkyPirl
    • xTer Room-House
      • How to Room-House
    • xTer Room-House Plus
      • How to xTer room-House plus
    • xTer TrueAD
    • xTer SmartFilter
  • White Paper
  • Blog
    • News
      • ------What is Web 1.0, 2.0, 3.0?------
      • The world's first decentralized audio chat room Room-House
      • What's so special about decentralized audio chat rooms?
      • Features that make Room-House.com decentralized chat rooms competitive with giants
      • Ever heard of Decentralized Charity Fund?
      • What is online meeting? 4 most effective online conferencing solutions
      • What is online meeting? Is it easy or difficult to organize?
      • What is the standard of a professional online meeting room?
      • History of the world's first online meeting software
      • Decentralized Application Room-House.com (Daap)
      • In what year was the internet born? And the birth of the project SkyPirl
      • Cooperation between Room-House and Russian State Social University
      • Building SkyPirl Decentralized Internet in Space
      • Data collection is a huge industry that operates in the dark
      • Free and easy decentralized internet for everyone to use
      • What is Pirl (PIRL) ? Community Based Project Pioneering in Introducing Masternode Technology
      • PirlGuard — Innovative Solution against 51% Attacks
      • ETC and PirlGuard Cybersecurity Plan
      • PirlChat messenger release
      • Overview of PirlChat 0.5.1–0.6 Beta Versions
      • Decentralized blockchain messengers
      • PirlChat messenger version 1.0.4 released
      • What is Pirl 2.0 and what changes will come to the Pirl network
      • The Pirl project announced the launch of its own exchange
      • PIRL’s Content Masternodes Are Almost Out: What You Need to Know
      • PIRL Masternodes and DApps Overview
      • SkyPirl (PIRL) Decentralized Charity Foundation
      • Thanks to PirlGuard, Callisto is protected against 51% attacks
      • What is SkyPirl(PIRL) project?
      • Here is the sci-fi story of the decentralized social network PIRL:
      • What is Callisto-Pirl.com project?
      • Here is the legend of the multi-planetary decentralized internet space station PIRL:
      • PIRL decentralized social network has the following key differences:
      • The SM feature of the decentralized social network PIRL seems to be an interesting secret.
      • SkyPirl(PIRL) is designed to attract investors with attractive features:
      • SkyPirl project does not sell ICO (Initial Coin Offering) or not raise funds for the following reaso
      • Merry Christmas and a Happy New Year! SkyPirl Callisto-Pirl.com
      • SkyPirl Project Merry Christmas Story:
      • Happy New Year! SkyPirl Callisto-Pirl.com
      • Here's the story of the SkyPirl Mars Exploration Project:
      • Multiplanetary Billionaire
      • Lost in space
      • The Last Space Train
      • The future of society: Polarization of rich and poor in the 4.0 revolution
      • Callisto-Pirl.com Civil War
      • Callisto-Pirl.com Civil War 2
      • Callisto-Pirl.com Civil War 3
      • Callisto-Pirl.com Civil War 4
      • Callisto-Pirl.com Civil War 5
      • Callisto-Pirl.com Civil War 6
      • Callisto-Pirl.com Civil War 7
      • Callisto-Pirl.com Civil War 8
      • Callisto-Pirl.com Civil War 9
      • Callisto-Pirl.com Civil War 10
      • Callisto-Pirl.com Civil War 11
      • Callisto-Pirl.com Civil War 12
      • Callisto-Pirl.com Civil War 13
      • Page 2
      • Page 1
      • Page
    • Technical
      • What is Bitcoin? How are Bitcoins created?
      • Export Your Private Key from Third-Party Wallets
      • What Is a Stablecoin?
      • What Is Wrapped Bitcoin?
      • 7 Ways to Generate Passive Income With Crypto
      • What is a decentralized social network?
      • How many Bitcoins can be mined in a day?
      • How many Bitcoins are there in the world?
      • What is a decentralized exchange? different from centralized floor?
      • What is Staking? 5 things to note when investing in Staking
      • What Are Blockchain Bridges?
      • Compare Hot Wallet and Cold Wallet, which one should you use?
      • What is NFT?
      • Building a Decentralized Internet in Space
      • Web 3.0 Paradox
      • Controversy about the future of the Internet
      • The metaverse virtual universe could revolutionize the Internet
      • 'Blockchain is the most influential technology since the Internet'
      • Web3 - Expectations for the Decentralized Internet
      • What is Dapp? The concept of Dapp and their classification
      • How Decentralized Web Browsers Give You Unsurpassed Privacy
      • Is Web 3.0 being hyped?
      • What are Nodes? Types of Nodes in Blockchain
      • Blockchain can be hacked or not?
      • What is Private Key and Public Key in Bitcoin?
      • What is a Nonce in Blockchain?
      • What is Decentralized Autonomous Cooperative (DAC)?
      • What is Genesis Block?
      • What is Web3? Explaining the Decentralized Internet of the Future
      • Z-Consensus , Callisto NetWork
      • DEX223 Explanation
      • CLOIPs
        • CLOIPs1
        • CLOIPs2
        • CLOIPs3
        • CLOIPs4
      • Skuld Hard Fork: Transforming Callisto Network with Dynamic Monetary Policy
      • Dex223: Decentralized exchange for ERC-223 & ERC-20 tokens!
      • What is SAVI Token?
    • Pi NetWork
      • Pi NetWork ( English )
        • Pi Network (PI) Mining Step by Step Guide
        • How to Create a Pi Wallet
        • How to KYC Pi Network 100% Success (2023)
        • Pi Network Security Circle: How to Add Users to Security Circle?
        • How to Migrate Your Mining Pi Coin to Mainnet in 8 Steps (See Video)
        • Why Pi Network can become the most active existence of mobile smart cryptocurrency?
        • FAQ? (FAQ)
      • Pi NetWork ( Tiếng Việt)
        • Pi NetWork là gì?
        • Cách KYC Pi Network 100% thành công (2023)
        • Vòng tròn bảo mật là gì?
        • Hướng dẫn tạo ví Pi Network
        • Cách Đào Pi Trên Điện Thoại
        • Cài đặt tên như thế nào là đúng trong Pi Network
        • Bạn cần xác nhận ngay VÍ PI THẬT để chuẩn bị chuyển SỐ PI XỊN vào ví pi sau khi hoàn thành KYC.
        • Hướng dẫn cách rút chuyển Pi về Ví Mainnet
        • Cách tăng tốc độ Đào Pi Network
        • Tại sao Pi Network có thể trở thành sự tồn tại tích cực nhất của tiền điện tử thông minh di động?
        • Hỏi đáp (FAQ)
    • Việt Nam
      • Pirl (PIRL) Là Gì ? Dự Án Dựa Trên Cộng Đồng Đi Tiên Phong Trong Việc Giới Thiệu Công Nghệ Masternod
      • Giới thiệu về SkyPirl (Pirl)
      • Sứ Mệnh Pirl2.0
      • Phần mềm Room-House.com là gì
      • Giới thiệu về Room-House.com
      • Room-House có thể tạo các cuộc họp kéo dài 24/7 và 365 ngày một năm.
      • Room-House.com bảo mật sản phẩm như thế nào?
      • Giới thiệu về xTER SafeContainer
      • Kế hoạch an ninh mạng của ETC và PirlGuard
      • Quỹ từ thiện phi tập trung Pirl
      • Phát hành trình nhắn tin PirlChat
      • Tổng quan về các phiên bản Beta của PirlChat 0.5.1–0.6
      • Trình nhắn tin chuỗi khối phi tập trung
      • PirlChat messenger phiên bản 1.0.4 được phát hành
      • Pirl 2.0 là gì và những thay đổi nào sẽ đến với mạng Pirl
      • Dự án Pirl đã công bố ra mắt sàn giao dịch của riêng mình
      • Masternode nội dung của PIRL sắp hết: Những điều bạn cần biết
      • Tổng quan về PIRL Masternodes và DApps
      • Xây dựng Internet phi tập trung SkyPirl trong không gian
      • Nhờ PirlGuard, Callisto được bảo vệ chống lại các cuộc tấn công 51%
    • Charity
      • Децентрализованный благотворительный фонд PIRL
      • PIRL 去中心化慈善基金会
      • PIRL 分散型慈善財団
      • Yayasan Amal Terdesentralisasi PIRL
      • PIRL विकेंद्रीकृत चैरिटी फाउंडेशन
      • Fundación Benéfica Descentralizada PIRL
      • Pirl المؤسسة الخيرية اللامركزية
      • קרן צדקה מבוזרת של PIRL
      • PIRL 분산형 자선 재단
      • PIRL Dezentrale Wohltätigkeitsstiftung
      • Ang mga desentralisadong charity fund Pirl
      • ມູນນິທິການກຸສົນ PIRL Decentralized
      • PIRL Decentralized caritas Foundation
      • มูลนิธิการกุศล Pirl กระจายอำนาจ
      • PIRL төвлөрсөн бус буяны сан
      • PIRL Weqfa Xêrxwazî ​​ya Nenavendî
      • Fundacja Dobroczynności Zdecentralizowanej PIRL
      • PIRL Gedesentraliseerde Liefdadigheidstigting
      • PIRL Adɔe Fapem a Wɔde Di Dwuma wɔ Decentralized
      • Fondacioni i Decentralizuar i Bamirësisë PIRL
      • PIRL ያልተማከለ የበጎ አድራጎት ድርጅት
      • PIRL ապակենտրոնացված բարեգործական հիմնադրամ
      • PIRL Mərkəzləşdirilməmiş Xeyriyyə Fondu
      • بنیاد خیریه غیرمتمرکز PIRL
      • Pirl বিকেন্দ্রীভূত দাতব্য তহবিল
      • PIRL Ongintzazko Fundazio Deszentralizatua
      • Дэцэнтралізаваны дабрачынны фонд PIRL
      • Pirl Decentralizovani dobrotvorni fondovi
      • Fundação de Caridade Descentralizada PIRL
      • Децентрализирана благотворителна фондация PIRL
      • Fundació Solidària Descentralitzada PIRL
      • Ang Pirl Decentralized Charity Fund
      • PIRL Fundazione di Carità Decentralizata
      • Decentralizirana dobrotvorna zaklada PIRL
      • Decentraliserede velgørenhedsfonde Pirl
      • PIRL detsentraliseeritud heategevusfond
      • PIRL Dɔmenyohabɔbɔ si Woɖo Ðe Dɔwɔƒewo
      • Stèidheachd Carthannais Sgaoilte PIRL
      • Fundación Benéfica Descentralizada PIRL
      • Ekitongole ky’obwannakyewa ekya PIRL Decentralized Charity Foundation
      • PIRL დეცენტრალიზებული საქველმოქმედო ფონდი
      • Fundación Caridad Descentralizada PIRL rehegua
      • PIRL વિકેન્દ્રિત ચેરિટી ફાઉન્ડેશન
      • PIRL Stichting Gedecentraliseerde Goede Doelen
      • Fondasyon Charite Desantralize PIRL
      • Gidauniyar Sadaka Mai Rarraba PIRL
      • PIRL Decentralizált Jótékonysági Alapítvány
      • Αποκεντρωμένο Φιλανθρωπικό Ίδρυμα PIRL
      • PIRL dreifð góðgerðarstofnun
      • PIRL Akwụsịghị Charity Foundation
      • Fondúireacht Carthanachta Díláraithe PIRL
      • PIRL Fondazione di beneficenza decentrata
      • PIRL ವಿಕೇಂದ್ರೀಕೃತ ಚಾರಿಟಿ ಫೌಂಡೇಶನ್
      • PIRL орталықтандырылмаған қайырымдылық қоры
      • PIRL មូលនិធិសប្បុរសធម៌វិមជ្ឈការ
      • PIRL Kwegereza abaturage ibikorwa byubugiraneza
      • PIRL Weqfa Xêrxwazî ​​ya Nenavendî
      • دامەزراوەی خێرخوازی لامەرکەزی PIRL
      • PIRL борбордон ажыратылган кайрымдуулук фонду
      • PIRL decentralizētais labdarības fonds
      • Fondation de Charité Décentralisée ya PIRL
      • PIRL decentralizuotas labdaros fondas
      • PIRL dezentraliséiert Charity Foundation
      • PIRL Децентрализирана добротворна фондација
      • PIRL Decentralized Charity Foundation
      • PIRL വികേന്ദ്രീകൃത ചാരിറ്റി ഫൗണ്ടേഷൻ
      • Fondazzjoni tal-Karità Deċentralizzata PIRL
      • PIRL Decentralized ပရဟိတဖောင်ဒေးရှင်း
      • Desentraliserte veldedige midler Pirl
      • PIRL विकेन्द्रीकृत चैरिटी फाउन्डेशन
      • PIRL Decentralized Charity Foundation
      • PIRL ବିକେନ୍ଦ୍ରୀକରଣ ଚାରିଟି ଫାଉଣ୍ଡେସନ୍ |
      • Faawundeeshinii Arjummaa Giddugaleessa Hin Qabne PIRL
      • PIRL غیر متمرکز خیریه بنسټ
      • Fondation caritative décentralisée PIRL
      • PIRL Hajautettu hyväntekeväisyyssäätiö
      • PIRL ਵਿਕੇਂਦਰੀਕ੍ਰਿਤ ਚੈਰਿਟੀ ਫਾਊਂਡੇਸ਼ਨ
      • PIRL Fundación Caridad Descentralizada nisqa
      • Fundația Descentralizată de Caritate PIRL
      • Decentralizované charitativní fondy Pirl
      • Децентрализована добротворна фондација Pirl
      • PIRL Aasaaska Samafalka ee Baahsan
      • Motheo wa Botho wo o Arotšwego wa PIRL
      • PIRL Decentralized Charity Foundation - Letlole la liphallelo
      • Yayasan Amal Desentralisasi PIRL
      • PIRL Wakfu wa Hisani uliogatuliwa
      • Фонди хайрияи ғайримарказии PIRL
      • PIRL பரவலாக்கப்பட்ட தொண்டு அறக்கட்டளை
      • PIRL వికేంద్రీకృత ఛారిటీ ఫౌండేషన్
      • PIRL Merkezi Olmayan Yardım Vakfı
      • Pirl Stiftelsen för decentraliserad välgörenhet
      • PIRL ዘይተማእከለ ግብረ ሰናይ ፋውንዴሽን
      • PIRL 去中心化慈善基金會
      • Децентралізований благодійний фонд PIRL
      • Pirl ڈی سینٹرلائزڈ چیریٹی فاؤنڈیشن
      • PIRL تارقاق خەير-ساخاۋەت فوندى
      • PIRL markazlashtirilmagan xayriya fondi
    • Khoa học, tâm linh và máy tính
      • SuDO Key the power of God
      • Dream, Parallel Universe
      • What is Constellation, Star?
      • If Bitcoin is considered a technology created by the "Creator", can opposing Bitcoin be considered o
      • Decentralized Universe
      • Earth's Development History: From Flat to Sphere
      • The Future of Religion and Technology
  • FAQ?
    • General
      • Getting Started
      • Claims
      • Redenomination of DOT
      • Grants
      • Polkadot Ambassador Programme
      • Research Pages
      • Community
      • Contributing
      • Contributors
      • Glossary
      • Adding accounts to an ENS domain
      • Ledger Application
      • How to Protect Yourself from Scams
      • How to Do Your Own Research
      • Thousand Validators Programme
      • Frequently Asked Questions (FAQs)
      • Miscellaneous
      • Programmes
        • Grants
        • Bug Bounty
        • Substrate Builders Program
        • Thousand Validators Programme
        • Thousand Contributors Programme
    • Learn
      • Basics
        • Accounts
          • Polkadot Accounts
          • Account Generation
          • Account Abstraction
          • Account Identity
          • Multi-Signature Accounts
          • Proxy Accounts
          • Pure Proxy Accounts
        • Transactions
          • Extrinsics
          • Balance Transfers
          • Transaction Fees
        • Tokens and Assets
          • Asset Hub
          • DOT
          • Token Inflation
          • Teleporting Assets
        • NFTs
          • Introduction to NFTs
          • NFT projects
        • Components
          • Polkadot Host
          • WebAssembly (Wasm)
          • Runtime Upgrades
          • Polkadot OpenGov
          • Treasury
          • Consensus
        • Staking
          • Introduction to Staking
          • Nomination Pools
      • Advanced
        • Availability and Validity
        • Cross-Consensus Message Format (XCM)
        • Sequential Phragmén Method
        • Proxy Accounts
        • Randomness
        • Simple Payouts
        • SPREE
        • WebAssembly (Wasm)
      • Cryptography
        • Cryptography Explainer
        • Keys
      • Paraobjects
        • Parachains
          • Common Good Parachains
          • Parachain Slots Auction
          • Parachain Crowdloans
          • Teleporting Assets
        • Parathreads
        • Bridges
      • Polkadot Comparisons
        • Polkadot and Kusama
        • Other Comparisons
        • Ethereum 2.0
        • Cosmos
      • Polkadot Lauch Phased
      • Video Tutorials
    • Build
      • Builder's Guides
      • Development Guide
        • Builders Starter's Guide
        • Parachain Development
        • Decentralized Storage Systems
        • Smart Contracts
        • Oracles
        • Data Analytics
        • Wallets
        • Substrate Connect
        • SS58 Registry
        • Opening HRMP Channels
      • Integration Guide
        • Polkadot Integration Guide
        • Polkadot Protocol Information
        • Integration Assets
        • Node Management
        • Node Interaction
        • Transaction Construction and Signing
      • Tool
      • Resources
    • Maintain
      • Network Maintainers
      • Parameters
      • Node Endpoints
      • Node And Dapps
        • Set up a Full Node
        • Networks
        • Set up Secure WebSocket for Remote Connections
        • Resolving Errors
      • Nominated Guides
        • Nominate
        • Unbonding and Rebonding
      • Validator Guides
        • How to run a Validator on Polkadot
        • Validator Payout Overview
        • Using systemd for a Validator Node
        • Secure Validator
        • How to use Polkadot Validator setup
        • Set Up a Validator with NGINX Reverse Proxy
        • How to Upgrade Your Validator
        • Monitor your node
        • How to Chill
        • How to Stop Validating
        • Validator Community Overview
      • Governance Guides
        • Participate in Democracy
        • Join the Council
        • Voting for Councillors
  • Agency policy
    • Information privacy policy
  • Rumhaus
    • О Room-House.com
    • Бесплатная пробная версия
    • CINEMA
    • Microphone On-Off
    • Демонстрация экрана
      • Поделитесь или не делитесь своим аудио
      • Учебное пособие по записи видео + камера + загрузка видео в формате mp4
    • Руки вверх
    • Изменить мелодию звонка при поднятии руки
    • Потоковое видео в формате MP4
    • Потоковое видео mp4 в браузере Firefox
    • Cabinet Lock
      • Cabinet Lock account
      • Как я могу «запереть шкаф» и не дать посторонним войти в комнату?
      • Как я могу добавить людей в комнату, когда комната заблокирована?
    • Подключить кошелек SkyPirl к Room-House
    • Изменить обложку
    • Название видео
    • Настройка собственного Room-House
    • Как скачать видео на ютуб, фейсбук и конвертировать в мп4 файлы
    • Используйте приложение для улучшения камеры во время прямой трансляции
    • Room-House может организовывать встречи, которые длятся 24/7 и 365 дней в году.
    • Как Room-House защищает продукты?
    • Получите монету Pirl при воспроизведении видео на Room-house
    • Source Code
Powered by GitBook
On this page
  • Set up a node​
  • Set up a certificate​
  • Set up Nginx server​
  • Importing the Certificate​
  • Connecting to the node​
  1. FAQ?
  2. Maintain
  3. Node And Dapps

Set up Secure WebSocket for Remote Connections

PreviousNetworksNextResolving Errors

You might want to host a node on one server and then connect to it from a UI hosted on another, e.g. . This will not be possible unless you set up a secure proxy for websocket connections. Let's see how we can set up WSS on a remote Substrate node.

Note: this should only be done for sync nodes used as back-end for some dapps or projects. Never open websockets to your validator node - there's no reason to do that and it can only lead to security gaffes.

In this guide we'll be using Ubuntu 18.04 hosted on a \$10 DigitalOcean droplet. We'll assume you're using a similar OS, and that you have nginx installed (if not, run sudo apt-get install nginx).

Set up a node

Whether it's a generic Substrate node, a Kusama node, or your own private blockchain, they all default to the same websocket connection: port 9944 on localhost. For this example, we'll set up a Kusama sync node (non-validator).

Create a new server on your provider of choice or locally at home (preferred). We'll assume you're using Ubuntu 18.04. Then install Substrate and build the node.

curl https://getsubstrate.io -sSf | bashgit clone https://github.com/paritytech/polkadot kusamacd kusama./scripts/init.shcargo build --release./target/release/polkadot --name "DigitalOcean 10 USD droplet ftw" --rpc-cors all

This will start the syncing process with Kusama's mainnet.

THE --rpc-cors MODE NEEDS TO BE SET TO ALL SO THAT ALL EXTERNAL CONNECTIONS ARE ALLOWED

Set up a certificate

To get WSS (secure websocket), you need an SSL certificate. There are two possible approaches.

Domain and Certbot

The first approach is getting a dedicated domain, redirecting its nameservers to your IP address, setting up an Nginx server for that domain, and finally for Nginx setup. This will auto-generate an SSL certificate and include it in your Nginx configuration. This will let you connect Polkadot-JS UI to a URL like mynode.mydomain.com rather than 82.196.8.192:9944, which is arguably more user friendly.

This is simple to do on cloud hosting providers or if you have a static IP, but harder to pull off when running things from your home server.

Self-signed

The second approach and one we'll follow here is generating a self-signed certificate and relying on the raw IP address of your node when connecting to it.

Generate a self-signed certificate.

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crtsudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048

Now it's time to tell Nginx to use these certificates. The server block below is all you need, but keep in mind that you need to replace some placeholder values. Notably:

  • SERVER_ADDRESS should be replaced by your domain name if you have it, or your server's IP address if not.

  • CERT_LOCATION should be /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem if you used Certbot, or /etc/ssl/certs/nginx-selfsigned.crt if self-signed.

  • CERT_LOCATION_KEY should be /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem if you used Certbot, or /etc/ssl/private/nginx-selfsigned.key if self-signed.

  • CERT_DHPARAM should be /etc/letsencrypt/ssl-dhparams.pem if you used Certbot, and /etc/ssl/certs/dhparam.pem if self-signed.

server {        server_name SERVER_ADDRESS;        root /var/www/html;        index index.html;        location / {          try_files $uri $uri/ =404;          proxy_buffering off;          proxy_pass http://localhost:9944;          proxy_set_header X-Real-IP $remote_addr;          proxy_set_header Host $host;          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;          proxy_http_version 1.1;          proxy_set_header Upgrade $http_upgrade;          proxy_set_header Connection "upgrade";        }        listen [::]:443 ssl ipv6only=on;        listen 443 ssl;        ssl_certificate CERT_LOCATION;        ssl_certificate_key CERT_LOCATION_KEY;        ssl_session_cache shared:cache_nginx_SSL:1m;        ssl_session_timeout 1440m;        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;        ssl_prefer_server_ciphers on;        ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";        ssl_dhparam CERT_DHPARAM;}

Restart nginx after setting this up: sudo service nginx restart.

If you used the self-signed certificate approach, modern browsers will not let you connect to this websocket endpoint without that certificate being imported - they will emit an NET:ERR_CERT_AUTHORITY_INVALID message.

Every websocket connection bootstraps itself with https first, so to allow the certificate, visit the IP of your machine in the browser prefixed with https, like so: https://MY_IP. This should produce a "Not private" warning which you can skip by going to "Advanced" and the clicking on "Proceed to Site". You have now whitelisted this IP and its self-signed certificate for connecting.

Now you have a secure remote connect setup for your Substrate node.

Set up Nginx server

Note that if you used Certbot, it should have made the path insertions below for you if you followed the

Importing the Certificate

Connecting to the node

Open and click the logo in the top left to switch the node. Activate the "Development" toggle and input your node's address - either the domain or the IP address. Remember to prefix with wss:// and if you're using the 443 port, append :443, like so: wss://example.com:443.

Polkadot-JS UI
​
​
​
following LetsEncrypt instructions
​
​
official instructions
​
​
Polkadot-JS UI