Commit Graph

22 Commits

Author SHA1 Message Date
Luna 6c3b50d287 doc: add GET /post/<id>/around to API.md 2022-06-10 01:49:07 +02:00
Skybbles 79d0efc25b doc: added BuildKit flags fix to INSTALL.md
Added this because recently, there have been more problems with `docker-compose build` where it errors:

    ERROR: Service 'server' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument

Recent Docker versions have switched to using `buildx` (BuildKit) to build containers, but that needs to be enabled, either in `daemon.json` or through an environment variable. But since we are using Docker Compose, it doesn't pass it to Docker; so the environment variable needs to be set. At least that's what I've heard and figured out sweat_smile My explanation might be very wrong - but it works :)
2022-03-30 22:47:03 -04:00
noirscape 82541536af Make waitress thread count configurable.
This should fix most scaling problems without needing to start
more server instances. By default, waitress maintains at most
4 threads. This works fine if the database is small (sub 100k posts)
but causes a large Task queue depth to occur if the database is larger.

Letting users increase the amount of threads means that one server instance
is able to handle more requests without locking up the rest of the site.

This adds a new environment variable to .env, THREADS, which can be used to
configure the amount of threads to start and is by default set to 4
(the default amount used by waitress).
2022-02-14 17:33:23 -05:00
Shyam Sunder 2bdb072296 server/posts: store and provide MD5 checksums 2021-01-05 13:20:01 -05:00
Shyam Sunder bc69505382 doc/install: applied formatting fixes to script 2020-12-19 16:32:29 -05:00
neobooru b5d2e447fc docs: update tag category api 2020-09-23 13:49:20 +02:00
Shyam Sunder 1ef0419dc2 server/pools: serialize pools as micro resource within post resources
Fixes #348
2020-09-19 10:29:09 -04:00
neobooru 802051399f doc/api: add pools to post resource 2020-09-18 18:27:21 +02:00
Shyam Sunder 0dd427755b client+server: fix linter issues due to updated pre-commit hooks 2020-09-01 14:07:39 -04:00
Shyam Sunder 4ab6aa5c85 doc/install: fix typo 2020-09-01 11:06:59 -04:00
Shyam Sunder 4595f9a2aa server: API support for webhooks
Closes #339
2020-08-13 22:41:43 -04:00
Shyam Sunder b74492974d doc/developer-utils: added helper script for easily creating szurubooru migrations 2020-08-13 12:38:43 -04:00
Shyam Sunder c0d0c4c894 client+server: normalize trailing newlines 2020-06-05 10:54:32 -04:00
Shyam Sunder 4f46619b91 doc: clean up 2020-06-05 10:29:52 -04:00
Ruin0x11 7bcefeb347 Add pool information to API.md 2020-05-04 19:45:09 -07:00
Shyam Sunder 99a69333e6 server/posts/upload: Add youtube-dl functionality
allows for video-based posts to be created by using youtube-dl
on the server. Access is controlled with the 'uploads:use_downloader'
permission.
2020-04-03 13:11:54 -04:00
Shyam Sunder 08e62ec885 client/posts: don't define flags on post upload 2020-04-01 21:01:20 -04:00
Shyam Sunder 1a8de9ef3a all: purge remaining elasticsearch artifacts 2020-03-13 22:45:11 -04:00
Shyam Sunder 80da6467f6 doc/install: update install instructions to remove build step 2019-10-25 12:48:22 -04:00
Shyam Sunder 83442b4977 server/tools: created simple admin command script 2019-08-15 21:53:57 -04:00
Shyam Sunder 9df090b4d9 doc: simplified how to use the base URL feature 2019-08-14 07:57:56 -04:00
Shyam Sunder 48e7eb10f1 doc: moved documentation to a seperate folder 2019-08-05 19:20:41 -04:00