{"action":"created","issue":{"url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/3","labels_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/3/comments","events_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/3/events","html_url":"https://github.com/webplatform/mediawiki-conversion/issues/3","id":96349409,"number":3,"title":"Find a way to reproduce sub page listing without relying on static site generator","user":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T15:42:08Z","updated_at":"2015-07-21T15:46:58Z","closed_at":null,"body":"We have about 6 000 documents in our main content pages. Regenerating static HTML version, send to a Lucene index every updated document at every merge to master would be intensive for no real benefit.\r\n\r\nHow about we remove the need for the static site generator to require a full generation run at every change. One reason most static site generator has to require a full run are cases when you want to list folders with sub pages.\r\n\r\nWhy not leverage an already baked-in feature from the web server and let it generate sub pages for us.\r\n\r\nThat way our static-site generator won’t need to have this task to be done.\r\n\r\n## Expected tasks\r\n\r\n* [x] Have a proof of concept that fills requirements\r\n* [ ] Create web server package with \"Directory listing\" that we can theme\r\n* [ ] Create files in static site generator content source \"directory listing templates\" to be used by web server\r\n* [ ] Create web server configuration to make use of the templates"},"comment":{"url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/comments/123380160","html_url":"https://github.com/webplatform/mediawiki-conversion/issues/3#issuecomment-123380160","issue_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/3","id":123380160,"user":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T15:46:58Z","updated_at":"2015-07-21T15:46:58Z","body":"How to configure NGINX (very rough) notes.\r\n\r\n## Steps\r\n\r\n1. Get source and build dependencies\r\n\r\n    wget http://nginx.org/download/nginx-1.9.2.tar.gz\r\n    tar xfz nginx-1.9.2.tar.gz\r\n    apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev libbz2-dev libssl-dev tar unzip\r\n\r\n\r\n1. Get modules we want to use\r\n\r\n    git clone https://github.com/aperezdc/ngx-fancyindex.git nginx-fancyindex\r\n    git clone https://github.com/giom/nginx_accept_language_module.git\r\n    git clone https://github.com/simpl/ngx_auto_lib.git\r\n    git clone https://github.com/anomalizer/ngx_aws_auth.git\r\n    git clone https://github.com/openresty/headers-more-nginx-module.git\r\n\r\n\r\n1. Configure and build\r\n\r\n    cd nginx-1.9.2/\r\n    ./configure --prefix=/opt/nginx \\\r\n                --add-module=../nginx-fancyindex \\\r\n                --add-module=../nginx_accept_language_module \\\r\n                --add-module=../ngx_auto_lib \\\r\n                --add-module=../ngx_aws_auth \\\r\n                --add-module=../headers-more-nginx-module\r\n    make\r\n\r\nAs root\r\n\r\n    sudo -s\r\n    make install\r\n\r\n2. Create Upstart config file\r\n\r\n    vi /etc/init/nginx.conf\r\n\r\nAdd contents\r\n\r\n    // file: /etc/init/nginx.conf\r\n    description \"nginx - small, powerful, scalable web/proxy server\"\r\n\r\n    start on filesystem and static-network-up\r\n    stop on runlevel [016]\r\n\r\n    expect fork\r\n    respawn\r\n\r\n    pre-start script\r\n      [ -x /opt/nginx/sbin/nginx ] || { stop; exit 0; }\r\n      /opt/nginx/sbin/nginx -q -t -g 'daemon on; master_process on;' || { stop; exit 0; }\r\n    end script\r\n\r\n    exec /opt/nginx/sbin/nginx -g 'daemon on; master_process on;'\r\n\r\n    pre-stop exec /opt/nginx/sbin/nginx -s quit\r\n\r\n1. To test FancyIndex, add to a `location` block\r\n\r\n    location / {\r\n        // ...\r\n        fancyindex on;\r\n        fancyindex_css_href \"/opt/nginx/fi.css\";\r\n        fancyindex_footer   \"/opt/nginx/fi_footer.html\";\r\n        fancyindex_header   \"/opt/nginx/fi_header.html\";\r\n    }\r\n\r\n\r\n## Reference\r\n\r\n  [nginx-source]: http://nginx.org/en/download.html\r\n  [build-debian-squeeze]: https://www.howtoforge.com/building-nginx-from-source-on-debian-squeeze\r\n  [nginx-modules]: http://wiki.nginx.org/3rdPartyModules"}}