Lion Kortlepel
8cccbe8542
Merge remote-tracking branch 'origin/master' into 226-allow-env-to-override-serverconfig
2023-12-28 13:49:02 +01:00
Lion Kortlepel
221f491019
return early after reading ENV in config
2023-12-25 16:19:53 +01:00
Lion Kortlepel
89db370e12
use env variables by default to override config values
2023-12-25 16:16:01 +01:00
Lion Kortlepel
b28c69a515
remove http settings from config
2023-12-21 13:07:35 +01:00
Lion Kortlepel
d8b8812026
remove password setting from config to avoid confusion
...
...until implemented
2023-12-05 18:23:23 +01:00
Simon
879b9772f5
Apply suggestions from code review
...
Co-authored-by: Lion <development@kortlepel.com>
2023-01-15 17:12:35 +00:00
Anonymous275
9f59c27b1f
- add hash function
...
- add password config
- add debug messages for password stages
- add pass boolean for heartbeat
- adjust network codes
2023-01-15 17:12:35 +00:00
Lion Kortlepel
1a9872db00
fix unhandled return value of fread in TConfig::TConfig unit test
2022-09-27 15:49:55 +02:00
Lion Kortlepel
24c98eb2b2
add more compile-time diagnostics, implement fixes for them
...
Before, a lot of common errors went unnoticed, due to insufficient
compiler diagnostics. This commit fixes this by adding a lot of new
diagnostics, and fixing the issues found by this.
2022-09-26 12:02:05 +02:00
Lion Kortlepel
ad414ec5c9
call onInit on hot-reload, cleanup, remove warnings
...
onInit is now called on hot-reload, for the whole plugin. Arguably, this
is not expected behavior, since only one file is being reloaded, but
this is the easiest way to do it, and the entire hot-reload process is
only for development purposes. Open an issue if this breaks your stuff
:^)
2022-07-14 00:37:47 +02:00
Lion Kortlepel
2d8ce09b2c
Merge remote-tracking branch 'origin/master' into rc-v3.1.0
2022-07-09 23:03:46 +02:00
Lion Kortlepel
f8d622352f
generate toml from scratch
2022-07-09 22:42:38 +02:00
Lion Kortlepel
6c1d02a425
add fclose
2022-07-09 22:29:12 +02:00
Lion Kortlepel
38eeec39b4
another attempt to fix #105
2022-07-09 22:27:05 +02:00
Lion Kortlepel
696e080e1c
fix #105
2022-07-09 22:01:53 +02:00
Lion Kortlepel
22b63220c7
add more tests to LuaAPI::FS, minor fixes to LuaAPI::FS
...
test config file creation, too
2022-05-26 13:49:13 +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
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
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
de82caef33
Add HideUpdateMessages setting ("ImScaredOfUpdates") and periodic update reminders (every 5th heartbeat)
2022-03-25 13:34:28 +01:00
Lion Kortlepel
17c571811a
Add config option to turn off chat logging
...
When LogChat is disabled, using the `say` command in the console will
trigger a "chat message sent!" reply, as UX feedback.
2022-02-06 21:46:51 +01:00
Lion Kortlepel
3cce875fbb
Add UseSSL option to server config
2021-12-06 13:47:07 +01:00
Lion Kortlepel
a1335e8c7d
Add statuses, status messages
2021-12-06 13:17:54 +01:00
Lion Kortlepel
0f74eca2ee
Fix various issues and crashes
2021-12-06 12:28: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
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
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
d84051bdd3
possible fix for windows path issue
2021-09-20 16:59:42 +02:00
Lion Kortlepel
48caae25fd
Finalize master&new-lua-features merge
2021-09-17 14:58:40 +02:00
Lion Kortlepel
883d69ba27
Merge remote-tracking branch 'origin/master' into rewrite-lua
2021-09-17 14:24:12 +02:00
Lion Kortlepel
dd4e4c4467
Start rewrite of lua, rename all print functions
2021-09-16 01:04:01 +02:00
Lion Kortlepel
6542be09ee
Clarify what sentry sends, add a way to turn off the warning
2021-09-11 11:38:06 +03:00
Lion Kortlepel
ffac000cd2
Config: Add basic opt-out for Sentry
2021-09-11 11:38:06 +03:00
Lion Kortlepel
a23946dddf
switch to toml11
...
it's better, believe me
2021-08-02 14:01:00 +02:00
Lion Kortlepel
7bc230974a
fix typo
2021-06-23 23:50:18 +02:00
Anonymous-275
b1ab7e65da
Possible windows compile fix
2021-06-23 20:03:42 +03:00
Lion Kortlepel
c82c53e3d1
remove debug prints
2021-06-23 16:40:08 +02:00
Lion Kortlepel
9e861ab993
parse old Server.cfg if it exists
2021-06-23 16:39:08 +02:00
Lion Kortlepel
db92f2867d
put a line between header and content of toml
2021-06-23 01:54:17 +02:00
Lion Kortlepel
f2915f9c2a
remove dead code
2021-06-23 01:54:17 +02:00
Lion Kortlepel
1abf6d5adf
Fully implement TOML config file, delete .idea folder
...
The new config is called "ServerConfig.toml" and uses the TOML library.
It's nice.
2021-06-23 01:54:17 +02:00
Anonymous-275
1bee72a175
Server config now uses json
2021-04-22 02:28:02 +03:00
Lion Kortlepel
459814a6ec
add lua engine, lua file, server, client, vehicle data, other stuff
2021-03-18 23:44:14 +02:00