7688 Commits

Author SHA1 Message Date
a31eb08ceb Use host networking in docker-compose 2025-12-29 19:45:16 -08:00
b47fa524c3 Remove Connect to network button from sidebar 2025-12-29 19:34:44 -08:00
ecb9fe6b33 fix: Add entrypoint script to fix volume permissions at runtime
- Add docker-entrypoint.sh that runs as root to fix mounted volume permissions
- Creates required subdirectories (logs, users, packages) before app starts
- Copies default config.js if missing
- Drops to node user via su-exec before running the app
- Update Dockerfile to use entrypoint and install su-exec
- Update docker-compose.yml with UID/GID mapping and separate volume mounts
- Wrap filesystem operations in try-catch to handle permission errors gracefully
2025-12-29 19:02:58 -08:00
fc2190c7cd fix: Wrap entire createPackagesFolder in try-catch for mounted volumes 2025-12-29 18:58:06 -08:00
8937658597 fix: Wrap packages node_modules mkdir in try-catch
Prevents crash on mounted volumes where mkdir may fail due to
permission restrictions.
2025-12-29 18:53:51 -08:00
6cd5f0fa81 fix: Handle chmod/mkdir permission errors on mounted volumes
Wrap chmod and mkdir with mode operations in try-catch blocks to
prevent EPERM errors when running in containers with mounted volumes.

macOS and some container runtimes don't allow chmod operations on
mounted directories, causing the app to crash on startup.
2025-12-29 18:41:37 -08:00
13164b89aa feat: Lock webchat to irc.supernets.org with simplified connect form
This commit configures Hard Lounge as a dedicated webchat client for
SuperNETs IRC, requiring only a nickname to connect.

- Set `public: true` to enable public mode (no user accounts required)
- Set `lockNetwork: true` to lock connections to irc.supernets.org only

Users will automatically connect to irc.supernets.org:6697 (TLS) and
join #superbowl upon entering a nickname.

- Added simplified connect form for public + lockNetwork mode
- Form now shows only the nickname field when both settings are enabled
- Hidden fields: server, port, TLS, username, realname, channels,
  leave message, authentication options
- Added CSS styling for proper spacing on simplified form

- Pinned to Node 20 Alpine (from lts-alpine) for compatibility
- Added py3-setuptools to fix distutils module error with Python 3.12
- Fixed file ownership with --chown=node:node on COPY commands
- Moved USER node directive after COPY to fix permission issues
- Pre-create /var/opt/hardlounge directory with correct ownership
2025-12-29 18:36:50 -08:00
hgw
8cc5eed920 Merge pull request 'Import upstream patches from The Lounge (Feb 2024), bump version to v4.4.1-2' (#2) from upstream-patches-202402 into master
Reviewed-on: #2
2024-02-01 19:41:48 -08:00
hgw
5cdfaa8019 Remove node 16 support, bump github build tests to node 21 2024-02-02 03:28:57 +00:00
hgw
bd0da6df13 mocha: move spec to invocation 2024-02-02 03:26:14 +00:00
hgw
3e3ab257a5 test: be specific as to which command we want to invoke 2024-02-02 03:25:04 +00:00
hgw
a3e00c95f5 mocha: remove duplicate flags 2024-02-02 03:24:32 +00:00
hgw
f922d783e0 mocharc: remove interactive 2024-02-02 03:23:31 +00:00
hgw
e456afa6c4 Webpack doesnt switch on NODE_ENV=test 2024-02-02 03:22:59 +00:00
hgw
ef48c54cb3 Dont run coverage report 2024-02-02 03:22:27 +00:00
hgw
a0f0dae3f7 dont use next() in router guards 2024-02-02 03:20:36 +00:00
hgw
e6ab6ae8ca Add msg type index to speed up cleaner 2024-02-02 03:17:39 +00:00
hgw
80c378961a Activate storage cleaner on server start 2024-02-02 03:12:12 +00:00
hgw
815fe04636 Expose cli task to do cleaning + vacuum 2024-02-02 03:09:44 +00:00
hgw
b19562e53d Add storage cleaner 2024-02-02 03:05:47 +00:00
hgw
fb720d2080 implement deleteMessages 2024-02-02 02:53:54 +00:00
hgw
1b9057d67d Accept db connection string 2024-02-02 02:45:36 +00:00
hgw
191c57757a Use variadic function for serialize_run 2024-02-02 02:39:30 +00:00
hgw
e862324de8 Dont fail if stderr not in json format 2024-02-02 02:30:16 +00:00
hgw
0abac9742b Bump version to 4.4.1-2 2024-02-02 02:26:17 +00:00
hgw
e18e5a5701 Upgrade dependencies 2024-02-02 02:25:07 +00:00
hgw
e2edef94b3 Add Code of Conduct 2023-12-10 05:05:58 +00:00
hgw
7dc56714b7 Remove version checking 2023-12-10 04:52:01 +00:00
hgw
4c87370e64 Cache yarn install during docker builds to improve subsequent build speeds 2023-12-10 04:51:32 +00:00
hgw
36e43b313b Remove this husky shit annoying ass bitch 2023-12-10 04:50:41 +00:00
hgw
f96e947a3d Update useragent 2023-12-10 04:44:10 +00:00
hgw
9e8588cc38 Remove yarn.lock from dockerignore 2023-12-10 04:43:35 +00:00
hgw
411e3d38e0 Remove emoji autocompletion 2023-12-03 03:39:40 +00:00
hgw
9d12853be0 have both image and build uncommented 2023-12-03 03:39:03 +00:00
hgw
89cbc770de add oled.css to build test 2023-12-03 03:38:40 +00:00
hgw
747107169b Linting is for chumps 2023-12-03 03:12:13 +00:00
hgw
6780bde8ab Add GitHub workflows 2023-12-03 02:53:50 +00:00
hgw
d66f8005de Merge pull request 'Merge in upstream fixes' (#1) from upstream-fixes-202312 into master
Reviewed-on: #1
2023-12-02 18:34:33 -08:00
hgw
66e5bc1745 Bump version to v4.4.1-1 2023-12-03 02:31:32 +00:00
hgw
90f53da088 Return new version in downgrade() 2023-12-03 02:26:10 +00:00
hgw
01ab326e52 Prevent modifying global array during sqlite testing 2023-12-03 02:24:41 +00:00
hgw
e91585f9ab Fix fetch_rollbacks typo 2023-12-03 02:23:14 +00:00
hgw
59cc53014d Prevent crashing on rDNS failure 2023-12-03 02:21:56 +00:00
hgw
42e08dec93 CLI sqlite migratior 2023-12-03 02:09:53 +00:00
hgw
72fabd5346 Upgrade Dependencies 2023-12-03 02:02:20 +00:00
hgw
5eb40f9ba7 Switch docker-compose to use image 2023-11-24 01:27:46 +00:00
hgw
0022055898 Remove some useless shit and upgrade vulnerable dependencies 2023-10-09 23:38:59 +00:00
hgw
d228a239cc Rebrand README to Hard Lounge 2023-10-09 23:05:54 +00:00
hgw
2a4b6a0b65 Update one more URL I forgot to 2023-10-09 23:05:09 +00:00
hgw
020e5d3490 Rebrand to Hard Lounge 2023-10-09 10:28:14 +00:00