Skip to content
forked from raylu/levelwig

web interface for static blog generator

Notifications You must be signed in to change notification settings

strinking/levelwig

 
 

Repository files navigation

levelwig

generate static blogs with a web interface

built on leveldb and pigwig

dev setup:

git submodule update --init
sudo apt install libffi-dev libleveldb-dev
pip3 install -r requirements.txt
./levelwig dev 8000

prod setup:

pip3 install eventlet
./levelwig gen
./levelwig prod 8000

webserver configuration

nginx:

server {
	server_name levelwig;
	listen 80;
	listen [::]:80;
	add_header X-Frame-Options DENY;
	add_header X-Content-Type-Options nosniff;
	add_header Content-Security-Policy "default-src none; style-src 'self'; img-src https: 'self'";
	add_header X-Xss-Protection "1; mode=block";
	charset utf-8;
	index index.html;
	location / {
		root /home/raylu/src/levelwig/public;
		rewrite ^/post/([0-9]+) /$1.html;
	}
	location /admin {
		include proxy_params;
		proxy_pass http://127.0.0.1:8000;
	}
}

lighttpd:

$HTTP["host"] == "levelwig" {
	server.document-root = "/home/raylu/src/levelwig/public"
	url.rewrite-once = (
		"^/post/([0-9]+)" => "/$1.html"
	)
	$HTTP["url"] =~ "^/admin" {
		proxy.server = ("" => (("host" => "127.0.0.1", "port" => 8000)))
	}
}

About

web interface for static blog generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.7%
  • HTML 26.3%