PaaS (platform as a service)

VPS Provider

Digital Ocean

More storage option?

mysqldump –skip-extended-insert –all-databases –single-transaction –master-data=2 –flush-logs | gzip -9 –rsyncable > backup.sql.gz

sudo -u postgres pg_dumpall | gzip -9 –rsyncable > backup.sql.gz

Using object storage

Security issues



EC2 IaaS

Deploy django on amazon

Blue Green Deployment

Continuous Delivery

Continuous Integration

Feature toggle

Log collection service

How to configure Google Client Id and Google Client Secret?

Kong with docker

docker run --rm  --name kong-database \
                -p 5432:5432 \
                -e "POSTGRES_USER=kong" \
                -e "POSTGRES_DB=kong" \
docker run --rm  --name kong \
              --link kong-database:kong-database \
              -e "DATABASE=postgres" \
              -p 8000:8000 \
              -p 8443:8443 \
              -p 8001:8001 \
              -p 7946:7946 \
              -p 7946:7946/udp \
              --security-opt seccomp:unconfined \
curl -i -X GET \
  --url http://localhost:8000/ \
  --header 'Host:'

curl -i -X POST \
  --url http://localhost:8001/apis/ \
  --data 'name=mockbin' \
  --data 'upstream_url=' \
  --data ''

curl -i -X POST \
  --url http://localhost:8001/apis/mockbin/plugins/ \
  --data 'name=key-auth'

curl -i -X POST \
  --url http://localhost:8001/consumers/ \
  --data "username=Jason"

curl -i -X POST \
  --url http://localhost:8001/consumers/Jason/key-auth/ \
  --data 'key=ENTER_KEY_HERE'

curl -i -X GET \
  --url http://localhost:8000 \
  --header "Host:" \
  --header "apikey: ENTER_KEY_HERE"

Combine and minimize JavaScript, CSS and Images files


  • Delayed tasks

  • schedule recurring tasks, like a crontab

  • schedule tasks to execute at a given time, or after a given delay

  • automatically retry tasks that fail

  • Result storage

  • Automatic retries

Encrypting with Mozilla SOPS and AGE

Encrypting yaml/json/text file with Mozilla SOPS and AGE

sudo apt install age
sudo dpkg -i sops.deb

age-keygen -o key.txt

cat key.txt

echo "key: value" > env.yaml

sops --encrypt --age  $(cat key.txt | grep -oP "public key: \K(.*)") env.yaml
sops --encrypt --age  $(cat key.txt | grep -oP "public key: \K(.*)") env.yaml  > env.enc.yaml

export EDITOR=vim
export SOPS_AGE_KEY_FILE=key.txt

sops env.enc.yaml