All Projects → starius → pasta

starius / pasta

Licence: MIT license
Pastebin-like service in Lapis

Programming Languages

lua
6591 projects
go
31211 projects - #10 most used programming language
MoonScript
45 projects
shell
77523 projects
C++
36643 projects - #6 most used programming language

pasta, Pastebin-like service in Lapis

How to use

  1. Install Lapis
  2. Install OpenResty
  3. Install LuaRocks
  4. Setup the database and change pasta/src/config.lua
  5. cd pasta && sudo luarocks make
  6. cd pasta/src && lapis migrate
  7. cd pasta/src && lapis server

If your Nginx has multiple workers, disable cache in config.lua.

You can also use it without OpenResty, but in Nginx with LuaJIT support. In Debian it can be installed with package nginx-extras. Copy file src/nginx.conf.compiled generated by lapis server production to /etc/nginx/sites-available/pasta and add a symlink to it in /etc/nginx/sites-enabled. Change it for your setup and add the following line after content_by_lua:

package.loaded.config = dofile "/path/to/your/config.lua"

See also Nginx configuration used for site pasta.cf: src/nginx-production.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].