diff --git a/_config.yml b/_config.yml index 77c4e32..3319322 100644 --- a/_config.yml +++ b/_config.yml @@ -9,7 +9,7 @@ url: "http://blog.10ninox.com/" # the base hostname & protocol for your site twitter_username: sipp11 github_username: sipp11 -permalink: /:year/:month/:day/:title/ +permalink: /:year/:month/:title/ paginate: 8 paginate_path: "post/page/:num/" diff --git a/_layouts/default.html b/_layouts/default.html index 097dfe6..36a2711 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -17,17 +17,13 @@ {% include footer.html %} - diff --git a/_layouts/page.html b/_layouts/page.html index 74c1a11..a4d9966 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -11,4 +11,14 @@ layout: default {{ content }} +
+ + diff --git a/_layouts/post.html b/_layouts/post.html index fa7269c..400d089 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -12,4 +12,14 @@ layout: default {{ content }} +
+ + diff --git a/_posts/2014-02-12-ssl-nginx.markdown b/_posts/2014-02-12-ssl-nginx.markdown index 5a51608..308953b 100644 --- a/_posts/2014-02-12-ssl-nginx.markdown +++ b/_posts/2014-02-12-ssl-nginx.markdown @@ -24,20 +24,20 @@ tags: Depending on where you purchase SSL certificate, I pick namecheap. I don't have any reason for it, but they are as reliable as it could be. GoDaddy, to me, is okay--they tend to have lower renewal cost for domain too. Back to SSL certificate, you need to generate a CSR (Certificate Signing Request) to ask for SSL. I'm using openSSL. - # openssl req -nodes -newkey rsa:2048 -keyout mywhatever.key -out whatever.csr + # openssl req -nodes -newkey rsa:2048 -keyout mywhatever.key -out whatever.csr A series of question will be asked: - Country Name (2 letter code) [AU]: US - State or Province Name (full name) [Some-State]: NH - Locality Name (eg, city) []: Atkinson - Organization Name (eg, company) [Internet Widgits Pty Ltd]: 10ninox Ltd - Organizational Unit Name (eg, section) []: - Common Name (eg, YOUR name) []: 10ninox.com - Email Address []: + Country Name (2 letter code) [AU]: US + State or Province Name (full name) [Some-State]: NH + Locality Name (eg, city) []: Atkinson + Organization Name (eg, company) [Internet Widgits Pty Ltd]: 10ninox Ltd + Organizational Unit Name (eg, section) []: + Common Name (eg, YOUR name) []: 10ninox.com + Email Address []: - A challenge password []: - An optional company name []: + A challenge password []: + An optional company name []: Some fields can be left blank, but you pretty much like to answer all for your own credential. The thing is you should leave challenge password empty, otherwise, you will have to type that every time your Nginx reload or restart. Then you get 2 file mywhatever.key and whatever.csr @@ -52,23 +52,23 @@ Now you have to extract your_site.zip which contains several files Merge those files into one, 10ninox-ssl-bundle.csr or whatever name you want. - $ cat 10ninox_com.crt PositiveSSLCA2.crt AddTrustExternalCARoot.crt > 10ninox-ssl-bundle.csr + $ cat 10ninox_com.crt PositiveSSLCA2.crt AddTrustExternalCARoot.crt > 10ninox-ssl-bundle.csr Then copy the bundle file and mywhatever.key we got earlier to a directory in your server; location is up to you. There is no restricted whatsoever. The last process is to setup Nginx to know where SSL certificate is in Nginx virtualhost file (likely to be /etc/nginx/sites-available/10ninox.com for Debian) This is an example how to configure one: - server { - listen 443; + server { + listen 443; - ssl on; - ssl_certificate /opt/projects/10ninox/ssl/10ninox-ssl-bundle.csr; - ssl_certificate_key /opt/projects/10ninox/ssl/mywhatever.key; - ssl_protocols SSLv3 TLSv1; - ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM; + ssl on; + ssl_certificate /opt/projects/10ninox/ssl/10ninox-ssl-bundle.csr; + ssl_certificate_key /opt/projects/10ninox/ssl/mywhatever.key; + ssl_protocols SSLv3 TLSv1; + ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM; - server_name 10ninox.com; - } + server_name 10ninox.com; + } optional lines: @@ -77,11 +77,11 @@ optional lines: It's better to test it first with - # service nginx configtest + # service nginx configtest If pass, - # service nginx restart + # service nginx restart =) diff --git a/_posts/2014-12-08-migrate-to-jekyll.md b/_posts/2014-12-08-migrate-to-jekyll.md new file mode 100644 index 0000000..71a3a02 --- /dev/null +++ b/_posts/2014-12-08-migrate-to-jekyll.md @@ -0,0 +1,14 @@ +--- +layout: post +title: Jekyll it is +created: 1417988938 +author: + display_name: sipp11 +categories: +- talk +--- +The change arrived. __10ninox blog__ now has turned into pretty minimal web pages. It is a bit harder on user's side since there is nothing such as tag link, month page, search, and so on, but posts remain the same: URL, content. + +10ninox's blog was started by using WordPress, but over the past years, I haven't been actively blogging and I'm doing a lot more on coding side. Consequently, I figured out that I should have just turned the blog into an easier and cheaper process on my part. Nowadays, I prefered doing anything in text file; working in terminal; pushing stuffs from there to logging in to WordPress--previewing and publishing from there. [Jekyll](http://jekyllrb.com/) was one of the obvious choices as far as Google's results are concerned. Don't ask me why I pick Jekyll over anything since I do not know if there is anything better. I did try to find Jekyll alternative in Python, but have yet to find anything better. Jekyll is okay with markdown and I'm comfortable with it. Since I do not code in Ruby, I am seemingly blind to configure in any way, but basic. Hopefully, one day, I get around to work on that, but so far, this works with only nginx and cheap VM. I couldn't be happier. + +Thanks to [Jekyll](http://jekyllrb.com/), [Disqus](http://disqus.com), [git](http://www.git-scm.com/), and [nginx](http://nginx.org/) to make this possible. \ No newline at end of file diff --git a/index.html b/index.html index a74c750..d7cb31c 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ layout: default