1020 Commits

Author SHA1 Message Date
Lion Kortlepel
5c8826a337
rename HttpLibServerInstance to Server 2022-05-24 21:13:55 +02:00
Lion Kortlepel
9fccc27741
http: add /player/{name}/vehicles 2022-05-24 21:05:10 +02:00
Lion Kortlepel
b0021d42b5
add /player/{name}/ draft 2022-05-23 23:17:17 +02:00
Lion Kortlepel
5598d75fd5
fix lifetime of http server, add /version 2022-05-23 23:16:53 +02:00
Lion Kortlepel
48bb1373e1
fix toml11 include path 2022-05-23 19:03:51 +02:00
Lion Kortlepel
8fce2fc67f
http: add /players 2022-05-23 19:01:03 +02:00
Lion Kortlepel
f7acd1e819
http: add /config 2022-05-23 18:44:42 +02:00
Lion Kortlepel
b46dc664c6
http: add /ready 2022-05-23 18:30:47 +02:00
Lion Kortlepel
18b4c698fc
add openapi specification for http server 2022-05-23 18:02:07 +02:00
Lion Kortlepel
62c300f285
http: add error, exception handlers 2022-05-23 17:41:44 +02:00
Lion Kortlepel
d8e974429d
ci: use parallel build, only build server 2022-05-23 17:30:23 +02:00
Lion Kortlepel
634955660d
Revert "Remove unneeded submodules"
This reverts commit a5153e4bc111d5b08acc4504277ae555af7225e9.
2022-05-23 17:27:01 +02:00
Lion Kortlepel
1e9e068aec
Merge branch 'rc-v3.1.0' into feature-9 2022-05-23 17:26:32 +02:00
Lion Kortlepel
87ecfdbc72
use v1 endpoint 2022-05-23 17:21:44 +02:00
Lion Kortlepel
2f1881bbe7
Merge branch 'rc-v3.0.2' into feature-9 2022-05-23 17:06:23 +02:00
Lion Kortlepel
1e60ac5ba2
remove ssl options from config 2022-05-23 17:05:43 +02:00
Lion Kortlepel
cd2752a525
remove ssl code
@jimkoen

This was removed because, as useful and as much work as this was, we
can't reasonably take responsibility for this. Instead, a server like
this should *always* be localhost only, and if it's not, it should be
behind an nginx reverse proxy anyways. We're removing the config options
regarding this in one of the next commits.
2022-05-23 16:59:31 +02:00
Lion Kortlepel
66b10f19c2
update lionkor/commandline 2022-05-23 16:59:18 +02:00
Lion Kortlepel
a5153e4bc1
Remove unneeded submodules 2022-04-28 16:28:23 +02:00
Lion Kortlepel
8d7505956d
let's try vcpkg 2022-04-28 16:26:30 +02:00
Lion Kortlepel
3b2016d09f
Windows moment
Windows deprecated when
2022-04-28 14:59:41 +02:00
Lion Kortlepel
ed03096cf5
Windows moment
Windows deprecated when
2022-04-28 14:58:07 +02:00
Lion Kortlepel
88f1976668
Merge branch 'rc-v3.0.2' into rc-v3.1.0 2022-04-28 14:40:57 +02:00
Lion Kortlepel
ca52d233c0
Use another git commit id for vcpkg
this should really be done properly, yikes
2022-04-28 14:34:05 +02:00
Lion Kortlepel
34b39aad4d
add message to shutdown suggesting Ctrl+C if it takes too long
This is an ongoing issue that needs to be resolved properly,
but I'm not sure what's hanging it.
2022-04-28 14:30:44 +02:00
Lion Kortlepel
f4eb492d91
Actions: try to use master as vcpkgGitCommitId 2022-04-28 14:24:02 +02:00
Lion Kortlepel
7f41a2a574
Update Changelog to reflect latest changes 2022-04-28 14:18:10 +02:00
Lion Kortlepel
11c53e0b3a
Remove unused error, as Sentry's code fails to build otherwise
Thanks, sentry.
2022-04-28 14:13:51 +02:00
Lion Kortlepel
974dda9f8b
HTTPServer: Add config value to specify listen IP
Change default IP to localhost,
Set default SSL to false due to this.
2022-04-28 14:12:26 +02:00
Lion Kortlepel
0979c8b1e4
HTTPServer: Attempt to catch more errors 2022-04-28 14:04:54 +02:00
Lion Kortlepel
0761036c8c
TConsole::StartLoggingToFile: implement 2022-04-28 13:46:25 +02:00
Lion Kortlepel
5ded713b4b
Application::CheckForUpdates: only print status the first time 2022-04-28 13:33:38 +02:00
Lion Kortlepel
668cc496b6
update commandline, unused are now errors 2022-04-28 13:29:16 +02:00
Lion Kortlepel
056d20292a
Make "unable to fetch version" a trace message 2022-04-28 13:14:28 +02:00
Lion Kortlepel
d8c33c03ee
start work on new logger 2022-04-05 22:27:45 +02:00
Lion Kortlepel
1bab3276e9
fix setsockopt SO_SNDTIMEO for windows, bump version number to 3.0.2, update commandline 2022-04-05 10:59:16 +02:00
Lion Kortlepel
4ff69528bd
fix some missing declaration 2022-03-31 23:56:02 +02:00
Lion Kortlepel
5e4c7eac51
add send timeout to client tcp socket 2022-03-31 23:53:10 +02:00
Lion Kortlepel
952631bb80
add send timeout to client tcp socket 2022-03-31 23:48:07 +02:00
Lion Kortlepel
23af76dba1
Only warn once about event handlers taking >60s 2022-03-31 23:12:50 +02:00
Lion Kortlepel
5755ead9be
Change :detach to :exit
@20dka
2022-03-31 22:18:55 +02:00
Lion Kortlepel
450f0a6875
Fixup merge 2022-03-31 22:17:10 +02:00
Lion Kortlepel
104737571c
Merge branch 'rc-v3.0.2' into rc-v3.1.0
This is a periodic merge to keep 3.1.0 up to date with 3.0.2
2022-03-31 22:10:49 +02:00
Lion Kortlepel
d01d79a49a
update changelog 2022-03-31 20:27:08 +02:00
Lion Kortlepel
d4b30a2583
CreateEventTimer: Implement CallStrategy
There are two CallStrategies:

- BestEffort (default): Will try to get your event to trigger at the specified
  interval, but will refuse to queue handlers if a handler takes too
  long.
- Precise: Will enqueue event handlers at the exact interval specified.
  Can lead to the queue filling up if the handler takes longer than the
  interval.
2022-03-31 20:13:59 +02:00
Lion Kortlepel
81dbf747d5
Kick client if we fail to send them a client event 2022-03-31 16:50:00 +02:00
Lion Kortlepel
b97397132d
TLuaEngine: improve result queue handling 2022-03-31 15:59:31 +02:00
Lion Kortlepel
d86efabb1a
Modernize CMakeLists, automatically update submodules
CMake will now find packages in a modern way (include(Find*)), and will
also ensure that submodules are updated, unless told otherwise.

Also removed some apple-specific workarounds, we will need to look at
that again.
2022-03-30 12:14:13 +02:00
Lion Kortlepel
de82caef33
Add HideUpdateMessages setting ("ImScaredOfUpdates") and periodic update reminders (every 5th heartbeat) 2022-03-25 13:34:28 +01:00
Lion Kortlepel
f8c58f363a
Change default MaxPlayers to 8 2022-03-25 13:32:41 +01:00