Exposing terra lcd nodes to public

  • A domain name needs to be registered. Https needs a verified domain name and doesn’t work with ip addresses. This post will use terraindia.io domain as reference
  • You should be able to add subdomain cname entries in your domain provider’s dns settings. Eg. lcd.terraindia.io
  • Add an A record for lcd subdomain pointing to the node’s public IP address. Make sure this IP address is static. Example, our lcd subdomain lcd.terraindia.io A record points to 3.109.149.102 . It’ll take some time for this dns update to propagate globally. Verify it by running nslookup
  • Install docker-compose
  • Clone https://github.com/wmnnd/nginx-certbot
  • Edit init-letsencrypt.sh script and replace domains key to have only your domain. Eg.
  • Open port 80 & 443 for public
  • Edit data/nginx/app.conf to replace all occurrences of example.org with your domain except the last one. The line containing proxy_pass must point to http lcd server with port. Eg.
  • Execute the ./init-letsencrypt.sh . This should generate the certificates
  • Restart the services using docker-compose

--

--

--

Terra validator from India — https://www.terraindia.io

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Meet the primary players of your immune system

hierarchical tree shows how all white blood cells originated from a stem cell

Ivory Towers to a North Star — Why you need an Architecture Vision

Understanding Log4J vulnerability, Leakage of sensitive data

CI/CD with Google Cloud Build, Terraform, and Github

Getting Started with Anaconda

CanHaptics Lab 3: Communicate something with Haply

Why you should apply the single responsibility principle to serverless

Analysis of commits and pull requests in Travis CI, Buddy and AppVeyor using PVS-Studio

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Terra India

Terra India

Terra validator from India — https://www.terraindia.io

More from Medium

‘How I Met Your Father’ Season 2 Information, Launch Date, Forged, Spoilers

how i met your father    “pilot”   episode 101    after a slew of let down tinder dates, sophie meets the seemingly perfect guy meanwhile, her roommate, valentina, returns home from london fashion week with a sexy souvenir an uber related phone mishap leads them to an eclectic new group of friends jesse chris lowell and sophie hilary duff, shown photo by patrick wymorehulu

2022 College Baseball Season Preview

Which are the dumbest dog breeds?

Which are the dumbest dog breeds?

“Japan is being bought up by China.”