diff options
author | Joursoir <chat@joursoir.net> | 2020-12-04 15:38:27 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-12-04 15:38:27 +0000 |
commit | 6f43ecd3758f445249db2bd4c4b32b912243cbdd (patch) | |
tree | f410d97f33cf1c607a698447e7e8e2380ebc884e /src | |
parent | f5a7c51c89567abc9b9c6b974a65e24ea616e1f4 (diff) | |
download | want-chat-6f43ecd3758f445249db2bd4c4b32b912243cbdd.tar.gz want-chat-6f43ecd3758f445249db2bd4c4b32b912243cbdd.tar.bz2 want-chat-6f43ecd3758f445249db2bd4c4b32b912243cbdd.zip |
add config file for server
Diffstat (limited to 'src')
-rw-r--r-- | src/config.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
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 |