Skip to content

Instantly share code, notes, and snippets.

@codexss
Last active October 14, 2017 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codexss/735d7c76820da1968187e3a0a0911d27 to your computer and use it in GitHub Desktop.
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
Author

codexss commented Oct 14, 2017

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