- Integriere die libwebsockets-Bibliothek für SSL/TLS WebSocket-Unterstützung in `CMakeLists.txt`. - Aktualisiere `chatconfig.json`, um SSL-Optionen wie `ssl_enabled`, `ssl_cert_path` und `ssl_key_path` hinzuzufügen. - Ergänze das `deploy.sh`-Skript um einen Schritt zur optionalen Einrichtung von SSL/TLS. - Modifiziere `update_config.sh`, um die SSL-Konfiguration in die Servereinstellungen zu integrieren. - Implementiere eine Überprüfung in `main.cpp`, um den SSL-Status zu prüfen und entsprechende Meldungen auszugeben.
40 lines
932 B
JSON
Executable File
40 lines
932 B
JSON
Executable File
{
|
|
"server": {
|
|
"port": 1235,
|
|
"ssl_enabled": false,
|
|
"ssl_cert_path": "/etc/yourpart/server.crt",
|
|
"ssl_key_path": "/etc/yourpart/server.key"
|
|
},
|
|
"database": {
|
|
"user": "yourpart",
|
|
"password": "r3EMWJ5p",
|
|
"connectstring": "tsschulz.de:1521/yourpart",
|
|
"host": "tsschulz.de",
|
|
"port": "1521",
|
|
"database": "yourpart"
|
|
},
|
|
"room-types": {
|
|
"0": "Standard",
|
|
"1": "Dice possible",
|
|
"2": "Poker possible",
|
|
"4": "Room will work with rounds",
|
|
"8": "protected"
|
|
},
|
|
"rooms": [
|
|
{
|
|
"name": "Halle",
|
|
"password": "",
|
|
"allowed": [],
|
|
"type": 0,
|
|
"roundlength": 0
|
|
},
|
|
{
|
|
"name": "Würfelglück",
|
|
"password": "",
|
|
"allowed": [],
|
|
"type": 5,
|
|
"roundlength": 20
|
|
}
|
|
]
|
|
}
|