Bài đăng phổ biến

Friday, November 18, 2022

Create shortlink with custom domain with firebase dynamic link by curl

curl  '' --header 'Content-Type: application/json' --data '
"dynamicLinkInfo": {
     "analyticsInfo": {
      "googlePlayAnalytics": {
        "utmSource": "nhannguyen",
        "utmMedium": "test",
        "utmCampaign": "smartpos"
  "suffix": {
    "option": "SHORT"

Monday, November 7, 2022

Solved: [ kubernetes ] client intended to send too large body

To set client_max_body_size in ingress-nginx-controller you must add more this line to yaml file like that: 

kind: Ingress
  annotations: "20m"


1. 20m ~ 20MB and no need restart nginx pod .
2. some template yaml have added this line to annotations : "<valuem>" but it is not enough you must add this line : there is nginx in the first line .

Sunday, October 9, 2022

Upgrade nginx on the fly - no downtime

          #first please check pid file by:

          cat /var/run/  

#copy new binary to /sbin/nginx and force overwrite if you don't use option "-f" you will see this error : 
cp: cannot create regular file ‘/sbin/nginx’: Text file busy
/bin/cp -f nginx /sbin/nginx 

#spawn a new nginx master/workers set

kill -s USR2 `cat /var/run/`

#check process

ps aux | grep nginx

# check pid 

tail -n +1 /var/run/*

#shut down the old master's worker

kill -s WINCH `cat /var/run/`

ps aux | grep nginx

safely shut down the old master process

kill -s QUIT `cat /var/run/`