Skip to content

Instantly share code, notes, and snippets.

@rasmusmerzin
Last active January 25, 2021 10:45
Show Gist options
  • Save rasmusmerzin/2e624ad793fb9b34da421d7ca8ecdb54 to your computer and use it in GitHub Desktop.
Save rasmusmerzin/2e624ad793fb9b34da421d7ca8ecdb54 to your computer and use it in GitHub Desktop.

Gcloud DNS

  1. Create a VM instance (enable http & https)
    Compute Engine > VM Instances
  2. Configure static IP address
    VPC Network > External IP Addresses
  3. Create a DNS zone (with the domain name)
    Network Services > Cloud DNS
  4. Add a record set
    blank name (and optionally www, api, etc.)
    previously configured static IP address
  5. Add Google nameservers from "Registrar Setup" to the domain name registrar

Nginx

  1. Update package registry and upgrade packages
  2. Install nginx, certbot and certbot-nginx/python3-certbot-nginx
  3. Start Nginx
  4. Run certbot --nginx with root access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment