Integrate chat from upstream
Substantially borrowed from upstream ref: 13a208ee88e55 (before they started editing generated artefacts instead of source). Integrated, including: - Remove previously removed features: emoji, hats, and name colors - Compensate for lack of unified root template - Add React build process to Dockerfile and `bootstrap/init.sh` - Preliminary integration of chat websocket workers For testing, modify `supervisord.conf.dev` to put chat on port 80 and the site service on some other port. Then visit: http://localhost/chat Still to do: - Access control for specific small-groups (and admins probably): Set the values somewhere (site_settings.json? Redis?) and use for authorization in `chat_is_allowed`. - Proxying only /chat to the websocket workers - Chat persistance across restarts: either Redis devops or to DB
This commit is contained in:
parent
dba6d37456
commit
d74ba5d197
48 changed files with 2649 additions and 398 deletions
|
@ -93,6 +93,7 @@ COMMENT_BODY_LENGTH_MAXIMUM: Final[int] = 500000
|
|||
COMMENT_BODY_LENGTH_MAXIMUM_UNFILTERED: Final[int] = 50000
|
||||
MESSAGE_BODY_LENGTH_MAXIMUM: Final[int] = 10000
|
||||
CSS_LENGTH_MAXIMUM: Final[int] = 4000
|
||||
CHAT_LENGTH_LIMIT: Final[int] = 1000
|
||||
|
||||
ERROR_MESSAGES = {
|
||||
400: "That request was bad and you should feel bad",
|
||||
|
@ -140,6 +141,8 @@ FEATURES = {
|
|||
|
||||
PERMS = {
|
||||
"DEBUG_LOGIN_TO_OTHERS": 3,
|
||||
"CHAT_BYPASS_MUTE": 2,
|
||||
"CHAT_MODERATION": 2,
|
||||
"PERFORMANCE_KILL_PROCESS": 3,
|
||||
"PERFORMANCE_SCALE_UP_DOWN": 3,
|
||||
"PERFORMANCE_RELOAD": 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue