|Farooq Karimi Zadeh b3c15243ad Message for /addnew when success||1 week ago|
|templates||1 week ago|
|.gitignore||6 months ago|
|LICENSE||6 months ago|
|README.md||1 week ago|
|badsites.py||1 week ago|
|bs_panel_template.html||6 months ago|
|bsconfig.sample.py||6 months ago|
This is code of Veil server-side. A project which tries to censor inappropriate images for users.
/: Retrieve a list of sites an pages with inappropriate images. No arguments.
/vote: Vote for a page or site because of having inappropriate images. IP address
is recorded for each vote. site's hostname(optionally with port) or page's address
must be passed as
/unvote: Remove vote for a page or site. Argument:
/panel: See the administration panel. Requires
/login: Login page.
/logout: Logout via this.
/addadmin: Add a new admin for the system. Requires
Create a Python class named BSConfig inside a file named bsconfig.py. The class must have the following properties:
db_path: Path to the LMDB DB(It will create one if there is no file with such
bindto: The IP address of the system it should bind to.
port: The port it should listen to. The Veil client connects to port 6101.
tomato_pwd_hash: Hash of your tomato's password(SHA512)
templates_path: Path to the directory containing
addadmin.html template files.
See bsconfig.sample.py for an example.
It is under ISC licence(as permissive as MIT). See LICENSE.