Real-time imageboard in node.js and redis http://doushio.com/moe/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Lal'C Mellk Mal cda3059869 "Only upload images" option преди 2 седмици
admin Use more arrow functions преди 1 месец
archive pipeline.js: use promises преди 2 месеца
client "Only upload images" option преди 2 седмици
curfew Remove `hook_sync` and `trigger_sync` преди 2 месеца
docs nofollow noopener noreferrer преди 3 години
imager Async imager jobs преди 2 седмици
lib Remove yepnope преди 3 години
lua Use active posts from Lua преди 3 години
report Nodemailer 6.4.10 преди 3 месеца
server Fix tweet fetching преди 2 седмици
tmpl Modernize tmpl JS преди 2 седмици
tripcode Port tripcode to NAPI преди 3 месеца
upkeep Async upkeep/clean.js преди 1 месец
www sockjs client 1.4.0; force ws or xhr-streaming преди 3 месеца
.gitignore Document spoiler images преди 1 месец
.ignore Don't grep minified JS преди 3 години
LICENSE Update copyright year to 2020 преди 1 месец
Makefile New script-building pipeline преди 7 години
README.md Document spoiler images преди 1 месец
TODO Inline/remove remaining hooks преди 1 месец
builder.js New script-building pipeline преди 7 години
common.js Use config prefix in client code преди 1 месец
config.js.example sockjs client 1.4.0; force ws or xhr-streaming преди 3 месеца
db.js Async commit_image_alloc преди 1 месец
deps.js Inline/remove remaining hooks преди 1 месец
etc.js Provide async exec, execFile преди 2 седмици
hot.js.example Hackily fade inserted images in преди 2 години
make_client.js Provide async exec, execFile преди 2 седмици
package.json Bump node-fetch from 2.6.0 to 2.6.1 (#126) преди 2 седмици
pipeline.js async make_client преди 1 месец
tail.js Use setImmediate in tail преди 7 години

README.md

Real-time imageboard. MIT licensed.

Setup:

  • Install dependencies listed below
  • Sign up for reCAPTCHA
  • Create a GitHub Application (callback URL = site URL + /login)
  • Copy config.js.example to config.js and configure
  • Copy hot.js.example to hot.js and configure
  • Copy imager/config.js.example to imager/config.js and configure
  • Copy report/config.js.example to report/config.js and configure
  • Clone assets and copy the kana spoiler image folder as ./www/kana/ (or create your own!).
  • Run npm install to install npm deps and compile a few helpers
  • Run node builder.js to run an auto-reloading development server

Production:

  • Have your webserver serve www/ (or wherever you’ve moved src, thumb, etc.)
    • Configure imager.config.MEDIA_URL appropriately
    • Then turn off SERVE_STATIC_FILES and SERVE_IMAGES
  • If you’re behind Cloudflare turn on CLOUDFLARE
    • Or if you’re behind any reverse proxy (nginx etc) turn on TRUST_X_FORWARDED_FOR
  • Run node server/server.js for just the server
  • You can update client code & hot.js on-the-fly with node server/kill.js
  • For nginx hosting/reverse proxying, refer to docs/nginx.conf.example
  • For a sample init script, refer to docs/doushio.initscript.example
  • config.DAEMON support is old and broken, PRs welcome

Dependencies:

  • ImageMagick
  • libpng
  • node.js + npm
  • npm install -g node-gyp
  • redis
  • ffmpeg 2.2+ if supporting WebM
  • jhead and jpegtran optionally, for EXIF autorotation

Optional npm deps for various features:

  • daemon (broken currently)
  • send (if you want to serve static files directly from the node.js process; useful in debug mode also)

Standalone upkeep scripts:

  • archive/daemon.js - moves old threads to the archive
  • upkeep/backup.js - uploads rdb to S3
  • upkeep/clean.js - deletes archived images