Commit Graph

24 Commits

Author SHA1 Message Date
modeco80
86f1345a2d cvmts: Only target QEMU vCPU threads by default
Previous behaviour was to limit the whole QEMU process; this only limits the vCPU threads. A bit (very) hacky how I did this but it does work.
2024-11-02 07:46:59 -04:00
modeco80
e780ecabf0 cvmts: Add support for cgroup process resource limits on Linux
Using systemd's `Delegate=` option, it is possible to get it to let you manage your own cgroup subtree, therefore allowing you to set options and other fun stuff.

This commit adds support for doing so and configuring the resource limits in config.toml.

For later: The cgroup created has to be a threaded one. Iin theory, we can actually wait for the QEMU process to handshake qmp, grab the vCPU threads, and only limit those. For now, just limiting the entire QEMU process works, though and is the least complicated.

NOTE: Windows support should still work, even if you have resource limits configured. If you do, it should only warn and complain, but still function.
2024-11-02 06:08:26 -04:00
Elijah R
b7a02f9874 fix vnc on windows 2024-08-04 18:28:33 -04:00
Elijah R
64d4774d00 chore: comment config.example.toml and format code with prettier/cargo 2024-08-04 15:50:00 -04:00
Elijah R
b0c23c3cdf Add internal banning (cvmban) using MySQL 2024-08-04 15:32:43 -04:00
MDMCK10
d16c045b04 Remove unused config options 2024-08-04 21:07:59 +02:00
Elijah R
1a5a0cd407 add geoip country flag support 2024-06-23 02:24:03 -04:00
Elijah R
a4247bbcc3 Merge branch 'master' into crusttest-refactoring
yes i know this is an ugly empty merge commit, I could NOT get it to rebase without creating massive vomit
2024-06-11 14:23:57 -04:00
Elijah R
794b801628 add VNCVM 2024-06-11 13:46:24 -04:00
Elijah R
8add016b60 implement TCP server, reimplement maxConnections except it now kicks the oldest connection 2024-05-27 00:06:05 -04:00
modeco80
2e05504e4a hastily hand merge yellowcode vote patch thing
Co-Authored-By: yellows111 <ice_ice@email.com>
2024-05-01 08:08:43 -04:00
yellows111
97878c51b4 add perm settings for guest voting
i'm mad that this wasn't thought about
2024-04-22 17:42:07 -04:00
Elijah R
f89492cfcd Implement account authentication (server) 2024-04-08 19:23:44 -04:00
MDMCK10
43fddbc521 Various bug fixes and small additions
IMPORTANT:
This commit contains new config options.
Make sure your local config file is up to date with config.example.toml to avoid issues.

CHANGELOG:
- Fix crash exploit caused by abnormally long WebSocket messages
- Added config option for limiting the maximum amount of active connections from the same IP
- Made per-IP turn limiter configurable
- Fixed an issue where vote updates were not sent to clients in some cases
- Added warning about using qmpSockDir on Windows hosts
- Updated dependencies
- Removed unused code/imports
2023-09-12 00:25:57 +02:00
Elijah
bae17c6a52 add turn whitelist and password support 2023-06-05 21:59:37 -04:00
MDMCK10
ababbf57b5 Add (optional) Origin header check 2023-05-25 15:59:16 +02:00
dakrk
41bf76ab0d Configurable chat history length
The previous default of 5 messages is utterly lame and didn't provide enough context to anything, and was also a downgrade from the old server as that had 10 messages by default (of which we're now going back to with this change).
2023-05-01 15:03:14 +01:00
Elijah R
a931188b9e Disable proxying by default (example config should work out of the box) 2023-02-13 18:52:42 -05:00
MDMCK10
cea28ebf8c Add IPData, Windows support, bugfixes (#2)
* Add IPData, Windows support, bugfixes

Changes:
- Added IPData: mutes and votes are now tracked per-IP instead of per-user.
- Windows support: QMP over TCP can now be enabled in the config.
- Vote cooldown can now be specified in the config.
- Fixed bugs:
"Username is already taken" message appearing when it shouldn't

* Remove vote from closed connections

---------

Co-authored-by: Elijah R <62162399+elijahr2411@users.noreply.github.com>
2023-02-11 09:58:20 -05:00
Elijahr2411
006edd4453 Move captcha support to another branch until I get time to fix it
This reverts commit 626d32d22b.
2023-02-11 14:29:06 +00:00
elijahr2411
626d32d22b add captcha support 2023-02-10 08:52:52 -05:00
Elijah R
733740e001 whoops 2023-02-09 16:03:52 -05:00
elijahr2411
d9f8653f32 add all the staff actions and resets and uhh i forgot to commit but everything works now 2023-02-07 12:29:33 -05:00
elijahr2411
3235375581 everything 2023-01-31 22:00:30 -05:00