npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ssl-http-with-docker

v1.1.0

Published

provide tool for you to setup your ssl server

Downloads

227

Readme

Secure your RPC

This repo will help you to secure RPC which adapts the node's requirement

Prerequisite

  • Docker
  • Docker-compose
  • Git

Installation

Git

sudo apt update
sudo apt install git

Docker

sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
apt-cache policy docker-ce
sudo apt install docker-ce

Check your docker to see if it's running

sudo systemctl status docker

You should see Screenshot

Docker Compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Check docker compose is live

docker-compose --version

You should see

Output
docker-compose version 1.29.2, build 5becea4c

Usage

  • Get your DNS

  • For me, I use contabo vps so I get DNS from url https://my.contabo.com/rdns -- Please do not use IP because too hard to secure bare IP

  • Clone this repo

git clone https://github.com/daningyn/ssl-rpc-host.git
cd ssl-rpc-host
  • Generate config (MUST DO)
npm run generate -- --vps {your dns} --email {your email}
  • Build non-ssl server
docker-compose -f docker-compose-temp-server.yml up -d --build
  • Enter the domain http://{your dns}, you should see it's live Screenshot

  • Build ssl to secure your url

docker-compose -f docker-compose-certbot.yml up
  • You should see result like below Screenshot

  • Build https app

docker-compose up -d --build
  • For now, I built configuration for DYM rollapp (ports: 26657 -> rpc, 1317 -> rest endpoint, 8545 -> rpc endpoint)

  • Check with url https://dns, you should see Screenshot

  • If you reached this step, Congratulation! You done.

Link for DYM RollApp

  • rpc: https://{your dns}/rpc
  • rest endpoint: https://{your dns}/rest
  • rpc endpoint: https://{your dns}/rpcEndPoint

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT