base SSL implementation todo::move cert into config

This commit is contained in:
Tina_Azure
2023-04-22 22:56:01 +02:00
parent e9fb6dcba7
commit d461c6561e
2 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ all:
g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -pthread
build:
g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -l:libsmtpclient.a -lcrypto -lssl -pthread
g++ $(INC) -o cavecomm $(SRCFILES) -DCROW_ENABLE_SSL -lpqxx -lfmt -l:libsmtpclient.a -lcrypto -lssl -pthread
release:
mkdir bin

View File

@ -510,5 +510,7 @@ int main(int argc, char *argv[]) {
*/
//set the port, set the app to run on multiple threads, and run the app
//todo:properly setup SSL
app.ssl_file("/media/sf_cavecommRemote/example.crt", "/media/sf_cavecommRemote/example.key");
app.port(18080).multithreaded().run();
}