964 Commits

Author SHA1 Message Date
Lion Kortlepel
0f74eca2ee
Fix various issues and crashes 2021-12-06 12:28:52 +01:00
Lion Kortlepel
279c93179c
Fix segfault in http 2021-12-06 10:22:52 +01:00
Lion Kortlepel
62cc1e9ce4
Http: Add config value to turn it off, move all http settings into a category in the config 2021-12-06 09:53:13 +01:00
Lion Kortlepel
bd41382233
Application::TSettings: Improve default initialisation 2021-12-06 09:00:57 +01:00
awesome_milou
9d283738aa
Add preliminary work for HTTP health endpoint (#68)
* Add preliminary work for HTTP health endpoint

* Http: Fix infinite loop bug in Tx509KeypairGenerator::generateKey()

* update commandline

* Add TLS Support class for use with http server

* Add preliminary HTTP Server; TLS still broken; fix in later commit

* Fix TLS handshake, due to server being unable to serve key/certfile in 'Http.h/Http.cpp'; Cause was httlib not being threadsafe due to being a blocking http library

* Run clang format

* Add option to configure http server port via ServerConfig

* TConfig: add HTTPServerPort to config parsing step

* Fix SSL Cert / Key path not auto generating when not existing

* Add health endpoint; Fix SSL Cert serial no. not refreshing when regenerating

* Switch arround status codes in /health route

* Run clang format

Co-authored-by: Lion Kortlepel <development@kortlepel.com>
2021-12-05 18:24:55 +01:00
Lion Kortlepel
b33d50361c
fix typo in --help 2021-12-05 01:40:39 +01:00
Lion Kortlepel
479bb9f931
TLuaEngine: Make WaitForAll timeout optional 2021-12-05 01:32:15 +01:00
Lion Kortlepel
672c7d02d1
Common: Add lua warn 2021-12-05 01:31:44 +01:00
Lion Kortlepel
a289d0e872
Add timeout to WaitForAll 2021-12-05 01:09:41 +01:00
Lion Kortlepel
86169ad0fa
TConsole: Add notice about help command on wrong command 2021-12-05 00:55:42 +01:00
Lion Kortlepel
f477570a1c
Add changelog about new console 2021-12-05 00:54:24 +01:00
Lion Kortlepel
7b99ccb08e
Add --working-directory flag 2021-12-05 00:42:50 +01:00
Lion Kortlepel
265dd710cf
add status command 2021-12-02 01:25:17 +01:00
Lion Kortlepel
eb67f483b2
Another possible fix for deadlock 2021-11-29 03:07:20 +01:00
Lion Kortlepel
98c7fea139
Possible fix for event handler timeouts 2021-11-29 02:56:41 +01:00
Lion Kortlepel
ccdc5dae17
update commandline 2021-11-29 02:09:05 +01:00
Lion Kortlepel
1bc9a5293e
Add kick response 2021-11-29 02:03:20 +01:00
Lion Kortlepel
c3151093e2
CMake: remove __linux completely 2021-11-29 01:42:23 +01:00
Lion Kortlepel
8f77f1c8c0
Add kick, fix cmakelists pretending to be on linux all the time
lol
2021-11-29 01:34:35 +01:00
Lion Kortlepel
19d67dee95
Add GetPlayerIDByName, kick, say 2021-11-29 01:14:37 +01:00
Lion Kortlepel
fc440bea2a
Add ability to switch into other lua states 2021-11-29 00:37:00 +01:00
Lion Kortlepel
c91f3ee33c
Print entering and leaving lua as raw 2021-11-29 00:17:09 +01:00
Lion Kortlepel
297b646d33
update commandline 2021-11-29 00:17:03 +01:00
Lion Kortlepel
768d0466f4
Add simple command interface 2021-11-28 23:45:03 +01:00
Lion Kortlepel
1e0ab6bbb3
Update commandline 2021-11-28 23:44:56 +01:00
Lion Kortlepel
472ec3390c
Update changelog 2021-11-27 12:25:31 +01:00
Lion Kortlepel
a4123d7d7c
Remove --ip example 2021-11-27 03:28:35 +01:00
Lion Kortlepel
6fd54f7907
Fix server message printing bug
There was a space missing
2021-11-27 02:31:21 +01:00
Lion Kortlepel
fd7bea0f36
Add BEAMMP_{WINDOWS,LINUX,APPLE} preprocessor defines instead of platform specific ones 2021-11-27 02:11:22 +01:00
Lion Kortlepel
9d2d4bb221
Remove --ip
This should be re-added later as a ServerConfig value
2021-11-26 19:08:05 +01:00
Lion Kortlepel
e1756298af
Fix doubled consent settings in ServerConfig 2021-11-26 19:07:08 +01:00
Lion Kortlepel
eae27633db
Add commandline arguments, implement --config, --version, --help 2021-11-26 19:04:21 +01:00
Lion Kortlepel
938774618c
Fix apple + linux compatibility 2021-11-26 13:25:09 +01:00
Lucca Jiménez Könings
1a2a123d87 Fix various macOS compatibility issues 2021-11-25 02:01:44 +01:00
Lucca Jiménez Könings
6247061d09 Replace gettid() call with POSIX compliant getpid() call in 'Common.cpp' 2021-11-25 02:01:44 +01:00
Lucca Jiménez Könings
08a62261e7 Add temporary cmake mods to make project compile on macOS, add ifdefs in 'Compat.h' for target darwin 2021-11-25 02:01:44 +01:00
Lion Kortlepel
a7db41ebaa
write thread ids to file 2021-11-21 03:31:35 +01:00
Lion Kortlepel
66d4e34a75
print always 2021-11-21 03:29:22 +01:00
Lion Kortlepel
7169e65305
clarify thread names 2021-11-21 03:19:02 +01:00
Lion Kortlepel
097e52674b
update commandline 2021-11-21 03:04:50 +01:00
Lion Kortlepel
1ec47252f2
update commandline 2021-11-21 02:31:52 +01:00
Lion Kortlepel
2ddac7f138
update commandline 2021-11-21 02:26:02 +01:00
Lion Kortlepel
cf08dee84f
Common: Make TID work on Windows 2021-11-19 13:12:27 +01:00
Lion Kortlepel
f1148ed1c4
LuaAPI: Show quotes around strings in table dumps (#60) 2021-11-19 13:03:27 +01:00
Lion Kortlepel
b6fa3574fd
RegisterThread: Add TID print (#63) 2021-11-19 12:46:43 +01:00
Lion Kortlepel
7079e80b71
Lua: Remove leading space in onChatMessage (fix #35) 2021-11-19 12:43:27 +01:00
Lion Kortlepel
48b9aa72dc
update commandline 2021-11-10 00:38:03 +01:00
Lion Kortlepel
c36ea52f60
Http: Use ipv4 2021-11-08 23:45:35 +01:00
Lion Kortlepel
87f23427a1
CMake: Nail down lua to be 5.3 2021-11-08 23:13:47 +01:00
Lion Kortlepel
7197c23632
TNetwork: Possible ip address fix 2021-11-08 23:10:24 +01:00