||2 years ago|
|assets||2 years ago|
|conf||2 years ago|
|kore_chroot||2 years ago|
|spec||2 years ago|
|src||2 years ago|
|tools||2 years ago|
|.gitignore||2 years ago|
|Makefile||2 years ago|
|README.md||2 years ago|
|dh2048.pem||2 years ago|
This repository contains the source code to a pastebin clone. It was made after concerns with pastebin.com taking down certain kinds of content. SMR aims to be small, fast, and secure. It is built on top of Kore, using luajit to expose a Lua programming environment. It uses sqlite3 as it's database. SMR is implemented in just over 2k SLOC and is expected to never exceed 5k SLOC. Contributions welcome.
- Accounts (complete)
- Comments (complete)
- Tags (complete)
- Search (complete)
- Author biographies
TODO's: Currently, people can post comments to unlisted stories even if they don't have the correct link.
If you want to contribute to this repository:
- Install the kore webserver(Documentation -> installation)
- Use a
kodev create smrto create a blank kore application
- Install Lua and Luarocks from your package manager
- Use Luarocks to install the following dependencies (
luarocks install <package>)
- etlua - Lua templating, comparable to Jinja for Python
- lpeg - Parsing Expression Grammers, used to build text parsers
- lsqlite3 - Sqlite3 for Lua, a lightweight database
- lua-zlib - Data compression
- You may need to modify conf/build.conf, I use Lua 5.1 on my development machine, but everything should still work with later versions.
- Install spp
- Clone this repository into the smr folder, cd into the root, and run
- You may need to modify the configuration in the Makefile, add test.monster 127.0.0.1 to your
/etc/hosts, modify command invocation, ect.
SMR requires a slightly modified version of Kore to run. See my kore patches for the changes I needed to make to get the JIT compiler playing nice with Kore's seccomp restrictions. There are a few other changes, like modified kore to accept any text as input for things like file upload.
Kore 4.0 no longer needs the seccomp changes, as those have been exposed to library users, and smr has been updated appropriately. It still needs the allow-multiline-input patch though.