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
|
||||
|
||||
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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user