It's Sakuragawa House Live, now here

It's Sakuragawa House Live, now here

It has been a long time that I've thought about my own blog. Sometimes some thoughts or experience I'd like to note down but don't know where to write on. Now they have a home here.

Change Logs

Aug 27, 2018

  • Updated to Ghost 2.0 and enjoyed the brand new editor

Sep 14, 2017

  • Isso is set up (via docker) to provide comment service

Jun 16, 2017

  • This blog is set up using dockerized Ghost
  • It features HTTP over SSL and HTTP/2 by nginx reverse proxy

I used to add

server {
    listen 0.0.0.0:80;
    listen [::]:80;

    location / {
        return 301 https://$host$request_uri;
    }

to my nginx virtual host to redirect HTTP to HTTPS. Ghost, however, actually will handle this redirect automatically based on the configured URL in config.js. When Ghost is dockerized, HTTPS is provided and handled by nginx and pass the proxy to Ghost via HTTP, but Ghost app URL still has to set to https:// while nginx has to remain passing proxy to http://. This is confusing. Besides, due to a bug in config.js, a line

https://github.com/TryGhost/Ghost/issues/2796

should be added when passing proxy to dockerized Ghost.