base SSL implementation todo::move cert into config
This commit is contained in:
2
Makefile
2
Makefile
@ -23,7 +23,7 @@ all:
|
|||||||
g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -pthread
|
g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -pthread
|
||||||
|
|
||||||
build:
|
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:
|
release:
|
||||||
mkdir bin
|
mkdir bin
|
||||||
|
@ -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
|
//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();
|
app.port(18080).multithreaded().run();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user