-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.hpp
57 lines (41 loc) · 948 Bytes
/
constants.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Created by imper on 8/16/22.
//
#ifndef FILESTORAGE_CONSTANTS_HPP
#define FILESTORAGE_CONSTANTS_HPP
# define _STR(s) #s
# define MACRO_STR(v) _STR(v)
# ifndef VERSION
# define VERSION "(devel)"
# endif
# ifndef APPNAME
# define APPNAME "filestorage"
# endif
# ifndef DB_USER_NAME
# define DB_USER_NAME "filestorage"
# endif
# ifndef DB_NAME
# define DB_NAME "filestorage"
# endif
# ifndef TABLE_NAME
# define TABLE_NAME "users"
# endif
# ifndef MAX_LOGIN
# define MAX_LOGIN 63
# endif
# ifndef MAX_PASSWORD
# define MAX_PASSWORD 255
# endif
# ifndef PASSWD_HASH_TYPE
# define PASSWD_HASH_TYPE passwd_sha_512
# endif
# ifndef DEFAULT_SERVER_ADDRESS
# define DEFAULT_SERVER_ADDRESS "http://0.0.0.0:80"
# endif
# ifndef MAX_INLINE_FILE_SIZE
# define MAX_INLINE_FILE_SIZE 16777216 // 16 MB
# endif
# ifndef CONFIG_SCRIPT_FILE
# define CONFIG_SCRIPT_FILE "filestorageconf.lua"
# endif
#endif //FILESTORAGE_CONSTANTS_HPP