Commit graph

1035 commits

Author SHA1 Message Date
badaix
ea07cb715d Fix RPC error results 2025-01-15 22:41:46 +01:00
badaix
9e6009cad0 Fix CVE-2023-36177 2025-01-15 21:51:54 +01:00
badaix
cf95349c67 Lower log level 2025-01-14 10:25:36 +01:00
badaix
a638da0ff7 Improve time sync over websocket 2025-01-13 20:23:29 +01:00
badaix
8015325d71 Create "/etc/snapserver/certs" directory 2025-01-09 22:19:01 +01:00
badaix
c7d301e1d7 Reformat cmake and python 2025-01-09 15:50:22 +01:00
badaix
d5677b6f78 Reformat code 2025-01-09 15:06:35 +01:00
badaix
58e82ef9e8 Provide cover art over HTTPS 2025-01-09 10:19:32 +01:00
badaix
cd67fb9645 Replace std::endl with "\n" 2025-01-07 20:29:16 +01:00
badaix
f1ee39e515 Update man pages 2025-01-07 20:05:48 +01:00
badaix
d1f10b63cf Add section about HTTP in configuration.md 2025-01-07 14:45:58 +01:00
badaix
59bff3e4f9 Publish HTTPS port via mdns 2025-01-07 14:31:12 +01:00
badaix
8ea1667331 Remove "ressource" parameter 2025-01-06 20:47:35 +01:00
badaix
e0443f6e5f Validate SSL configuration 2025-01-05 17:52:31 +01:00
badaix
72358cd912 Fix clang-tidy issues 2024-12-26 23:00:04 +01:00
badaix
d5d4cb9e63 Rename "private_key" to "certificate_key" 2024-12-26 22:58:41 +01:00
badaix
83742ba901 Remove unused include 2024-12-21 21:33:52 +01:00
badaix
bc4b015037 Add comment about --daemon 2024-12-21 20:50:56 +01:00
badaix
1486e2dabd Update default listen addresses 2024-12-21 20:42:50 +01:00
Ernst
0e283f9bad
listen to both IPV6 and IPV4 incoming connections: binding to "::" implies both protocols (#1290)
Co-authored-by: Johannes Pohl <johannes.pohl@badaix.de>
2024-12-21 19:05:41 +01:00
badaix
17efc6799c Fix static analysis issues 2024-12-20 21:56:12 +01:00
badaix
0b1b1e38bb Iclude boost as system headers to suppress warnings 2024-12-20 19:30:42 +01:00
badaix
06f1c7d32f Remove unused includes, fix warnings 2024-12-19 23:37:44 +01:00
badaix
a79b3e6599 Replace std::endl with "\n" 2024-12-19 23:35:12 +01:00
badaix
6ada939adf Fix compilation with boost v1.87.0 2024-12-19 22:53:49 +01:00
badaix
11d7d98186 Reformat code 2024-12-19 22:44:51 +01:00
Rechner Fox
b5284301c5 Add custom URL prefix for HTTP URLs (#1260)
Co-authored-by: Johannes Pohl <johannes.pohl@badaix.de>
2024-12-19 22:44:51 +01:00
badaix
cfe309087e Fix compile error 2024-12-19 22:44:51 +01:00
badaix
a0d88e8856 Move control requests into Request factory 2024-12-19 22:44:51 +01:00
badaix
45f189432d Make some functions const 2024-12-19 22:44:51 +01:00
badaix
ad6ab1ad3b Fix warning 2024-12-19 22:44:51 +01:00
badaix
e901f0f9f4 Add base config item 2024-12-19 22:44:51 +01:00
badaix
2b6ad6b90b Add some documentation 2024-12-19 22:44:51 +01:00
badaix
c156fab123 Fix some doxygen warnings 2024-12-19 22:44:51 +01:00
badaix
061f92a361 Add missing include 2024-12-19 22:44:51 +01:00
badaix
78cbd3cf5b Remove ImageCache instance from ServerSettings 2024-12-19 22:44:51 +01:00
badaix
c112058998 Pass complete Settings struct around 2024-12-19 22:44:51 +01:00
badaix
a704fd11d5 Fix pipe reconnect 2024-12-19 22:44:51 +01:00
badaix
878fecdc35 Add AuthInfo class 2024-12-19 22:44:51 +01:00
badaix
c784e2526f Update jsonrpc++ to v1.4.0 2024-12-19 22:44:51 +01:00
badaix
4321a9d9d1 Add JWT class 2024-12-19 22:44:51 +01:00
badaix
97739a460e Add 'ssl_enabled' config parameter 2024-12-19 22:44:51 +01:00
badaix
c2528623cd Make key password configurable 2024-12-19 22:44:51 +01:00
badaix
153d004004 Reenable plain HTTP, change HTTPS port to 1788 2024-12-19 22:44:51 +01:00
badaix
c5bd0ed6df Clean up 2024-12-19 22:44:51 +01:00
badaix
447bbb60f7 Suppress boost warning 2024-12-19 22:44:51 +01:00
badaix
a796bb2032 Use HTTPS, support for HTTP missing 2024-12-19 22:44:51 +01:00
badaix
f7bd5e733f Setup SSL context 2024-12-19 22:44:51 +01:00
badaix
6190041e86 Fix compilation with boost v1.87.0 2024-12-19 21:36:08 +01:00
Rudi Heitbaum
b2fd2bf9ef
use make_address from boost as from_string is deprecated (#1308)
Since boost 1.87.0 boost::asio::ip::address::from_string is no longer available

ref: c0d1cfce77

fixes:
    ../server/control_server.cpp: In member function 'void ControlServer::start()':
    ../server/control_server.cpp:164:111: error: 'from_string' is not a member of 'boost::asio::ip::address'
      164 |                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
          |                                                                                                               ^~~~~~~~~~~
    ../server/control_server.cpp:180:112: error: 'from_string' is not a member of 'boost::asio::ip::address'
      180 |                                                                        tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
          |                                                                                                                ^~~~~~~~~~~
    ../server/streamreader/tcp_stream.cpp: In constructor 'streamreader::TcpStream::TcpStream(streamreader::PcmStream::Listener*, boost::asio::io_context&, const ServerSettings&, const streamreader::StreamUri&)':
    ../server/streamreader/tcp_stream.cpp:67:97: error: 'from_string' is not a member of 'boost::asio::ip::address'
       67 |         acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
          |                                                                                                 ^~~~~~~~~~~
    ../server/streamreader/tcp_stream.cpp: In member function 'virtual void streamreader::TcpStream::connect()':
    ../server/streamreader/tcp_stream.cpp:96:75: error: 'from_string' is not a member of 'boost::asio::ip::address'
       96 |         boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
          |                                                                           ^~~~~~~~~~~
    ../server/stream_server.cpp: In member function 'void StreamServer::start()':
    ../server/stream_server.cpp:234:103: error: 'from_string' is not a member of 'boost::asio::ip::address'
      234 |                                                               tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
          |
2024-12-18 16:23:11 +01:00