humungus - old-flak

i am gravely disappointed

i understand your pain

overview - files - changes - changes rss

this was flak

-- requirements

lua-tedu
memcached
sqlite3
python2.7
py-pygments
nginx

-- setup
$ encrypt -b10 password
$2b$10$T.U2FInjMEY2lJTPJ4Fc/u9pshhMJWnj6Wj9K1vx.JC2.0AMdSSjK

$ sqlite3 -init schema.sql flak.db
sqlite> insert into users (name, hash, flags) values ('user',
'$2b$10$T.U2FInjMEY2lJTPJ4Fc/u9pshhMJWnj6Wj9K1vx.JC2.0AMdSSjK', 1);
sqlite> .quit

-- config
config goes into a file called... config.
probably need to configure urlprefix and homeurl for login and RSS to work.

memcachedserver=./flakmem.sock
urlprefix=/test-flak
homeurl=https://localhost/test-flak/
iconurl=https://cdn/icon.png
nprocs=4

-- startup
memcached -s flakmem.sock &
python2.7 pyggy.py &
luajit flak.lua

-- nginx.conf
http {
	proxy_cache_path /var/www/cache levels=2 inactive=24h keys_zone=flak:5m max_size=100m;
	gzip  on;
	gzip_proxied any;
	gzip_types text/plain text/css text/javascript;
}

server {
	ssl on;
	proxy_set_header X-Secure  "yes";

	location /test-flak/ {
		proxy_pass http://localhost:8887/;
		if ($http_cookie ~* "token") {
			set $no_cache "1";
		}
		proxy_no_cache $no_cache;
		proxy_cache_bypass $no_cache;
		proxy_cache flak;
	}
}

recent changes

fda23999cdaf on 2019-03-05 20:15:37 -0500 EST by Ted Unangst <tedu@tedunangst.com>

is -> was

629b5cb3605e on 2019-01-20 18:15:37 -0500 EST by Ted Unangst <tedu@tedunangst.com>

actually, just make content bigger

60cb4be7ee22 on 2019-01-20 18:11:20 -0500 EST by Ted Unangst <tedu@tedunangst.com>

bump font size a little for goog

01c24c10a3a6 on 2018-12-18 22:12:56 -0500 EST by Ted Unangst <tedu@tedunangst.com>

goog thinks this is a better width

e709590e8dd1 on 2018-11-08 14:45:07 -0500 EST by Ted Unangst <tedu@tedunangst.com>

oops, goog style was copied from an old version

2e0a07425040 on 2018-10-29 14:09:28 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

default to fake memcache server

45cfd8878460 on 2018-10-02 15:32:07 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

m

b06569bd0482 on 2018-10-01 17:03:07 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

a goog style

0b90b512fd63 on 2018-10-01 17:02:51 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

mods to allow style changes

cacd67e41397 on 2018-01-13 05:24:24 -0500 EST by Ted Unangst <tedu@tedunangst.com>

only link title if there's more than one