Setting up Papers.FreeBSD.org

Packages

nginx
ca_root_nss
rubygem-jekyll
rubygem-jekyll-feed
rubygem-jekyll-paginate

Create Jekyll Site

mkdir -p /usr/local/www cd /usr/local/www jekyll new papers

Jekyll Config

/usr/local/www/papers/_config.yml

title: FreeBSD Presentations and Papers
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://papers.freebsd.org" # the base hostname & protocol for your site

NGINX Config

/usr/local/etc/nginx/nginx.conf

    server {
        listen          80 default;
        server_name     papers.freebsd.org;

        root /usr/local/www/papers/_site;
        expires         300s;

        location / {
                index   index.html;
        }
    }

Build Site

cd /usr/local/www/papers jekyll build

clusteradm/papers (last edited 2016-08-20T20:39:10+0000 by AllanJude)