Day: October 1, 2021

Living a Happy Life

Living a Happy Life

Be happy, there are many ways to satisfy yourself, just listed them below.

Be positive

Things always have two views, positive and negative, thinking positively.

Target on small achievement

Big achievements accompany too many failures, they are always bulit up by many small achievements.

Find your work–life balance

Work for others is called work, work for yourself is called contribute.

Be creative

Lesser rules applied.

Accept imperfection

Nothing is the best.

Do what you love to do

Building hobbies

Spend wisely

Less worry later

Live in the moment

Don't worry too much about future

Helping others

Just say hi to others during exercise can help yourself forget tiredness.

Listening music and watching video

Bring you out of depression.

Be yourself

Don't always follow

Hang out with happy people

If impossible, go out and watching others

Spend time in nature

To forget whatever happened before.

Reminisce over happy memories

Don't try to recall sad things although they can't be forgotten.

Don't hope too much

Don't believe people said, just listen.


20 Secrets to Living a Happier Life

Install *Synology* NAS managed *Let’s Encrypt Certificate* in *NGINX*

Install Synology NAS managed Let's Encrypt Certificate in NGINX

Certificate Management

Synology NAS can be used for certificate management, and Let's Encrypt certificate can be exported as ZIP file used for NGINX HTTPS configuration.

  1. Go to Control Panel -> Security -> Certificate
  2. Select certificate to be exported
  3. Select Export Certificate from right click menu
  4. Save exported file

For existing certificates, can use right click -> renew option to renew.

Note: All domain in the certificates, must be resolved to current Synology NAS at port 80 and port 443, otherwise, certificate generation will be failed.

In downloaded ZIP file, following files can be found.

  • certs.pem
  • chain.pem
  • privkey.pem

NGINX configuration

  1. Concatenate cert.pem and chain.pem to cert-with-chain.pem (or fullchain.pem) file

  2. Copy cert-with-chain.pem and privkey.pem into NGNIX conf.d folder

  3. Verify NGINX configuration as below

ssl_certificate     conf.d/cert-with-chain.pem;
ssl_certificate_key conf.d/privkey.pem;
  1. Restart NGINX



The date of issue for new certificate should be displayed in certificate information window.

Command line

Following command can be used for verification

openssl s_client -connect <domain_name>:<port>

If got following error, concatenate chain.pem into cert.pem, because the full chain is required.

verify error:num=20:unable to get local issuer certificate
verify error:num=21:unable to verify the first certificate


How to install Let's Encrypt on Nginx