Skip to content

VarolOkan/LooseLeaf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

193 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LooseLeaf

This branch will ad the ability to have e blog run at a set baseURL. Using this version together with nginx reverse_proxy will allow you to run multiple blog instances on one port ( e.g. port 80 )

  nginx.conf 
  worker_processes 1;
  events { 
    worker_connections 1024;
    use epoll;
  }
  http {
    include conf.d/*.conf
    server {
      listen 80;
      server_name localhost;
      
      location /blog {
        proxy_pass http://127.0.0.1:3000/blog;
        proxy_redirect off;
        proxy_set_header $host;
      }
      location /blog2 {
        proxy_pass http://127.0.0.1:3001/blog2;
        reverse_proxy off;
        proxy_set_header $host;
      }
    }
  }

  conf.json
  {
    "site" : {
      "title" : "AstraNOS blog"
    },
    "copyright" : {
      "title"   : "AstraNOS",
      "uri"     : "http://www.AstraNOS.org/"
    },
    "session"   : {
      "secret"  : "AstraNOS"
    },
    "process"   : {
      "port"    : "3000",
      "loc"     : "/blog",
      "logging" : true
    },
    "analytics_id" : "",
    "disqus_shortname" : "",
    "usersNav"  : {
      "enable"  : true,
      "lead"    : []  
    }
  }

Lightweight blog engine running on node.js and express.

$ npm install -g looseleaf
$ looseleaf yourblog
$ node ./yourblog/app.js
"yourblog" server listening on port 3000

Demo

License

The MIT License

About

Lightweight blogging engine for node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%