Skip to content

Instantly share code, notes, and snippets.

@codexss
Last active October 14, 2017 18:35
Show Gist options
  • Select an option

  • Save codexss/735d7c76820da1968187e3a0a0911d27 to your computer and use it in GitHub Desktop.

Select an option

Save codexss/735d7c76820da1968187e3a0a0911d27 to your computer and use it in GitHub Desktop.

backend

curl -fsSL get.docker.com -o get-docker.sh 
sh get-docker.sh  
docker run -d -p 127.0.0.1:3001:20080  --restart=always lentin/elgoog 

frontend

curl https://getcaddy.com | bash -s personal 
cat <<EOF >Caddyfile
[DOAMIN HERE] { 
  tls [EMAIL HERE] 
  header / Strict-Transport-Security "max-age=31536000;" 
  proxy / localhost:3001 { 
    header_upstream Host {host} 
  } 
} 
EOF 
caddy &
@codexss
Copy link
Copy Markdown
Author

codexss commented Oct 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment