From 6f43ecd3758f445249db2bd4c4b32b912243cbdd Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 4 Dec 2020 15:38:27 +0000 Subject: add config file for server --- src/config.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/config.hpp diff --git a/src/config.hpp b/src/config.hpp new file mode 100644 index 0000000..7533b60 --- /dev/null +++ b/src/config.hpp @@ -0,0 +1,14 @@ +#ifndef WANTCHATCONFIG_H +#define WANTCHATCONFIG_H + +// config for work in localhost: +const char *SERVER_IP = "127.0.0.1"; +const int SERVER_PORT = 3030; + +const char *DATABASE_HOST = "localhost"; +const char *DATABASE_USER = "admin"; +const char *DATABASE_PASSWD = "admin"; +const char *DATABASE_DB = "wantchat"; +const unsigned int DATABASE_PORT = 3306; // standard mariadb port + +#endif \ No newline at end of file -- cgit v1.2.3-18-g5258