master uint/parados / server / include / config.h
 1#ifndef CONFIG_H
 2#define CONFIG_H
 3
 4#include <stdbool.h>
 5
 6extern char media_dir[4096];
 7extern char server_addr[64];
 8extern char cors_origin[1024];
 9extern bool verbose_log;
10extern int server_port;
11extern int http_io_timeout;
12extern int max_clients;
13extern int auth_delay;
14
15/**
16 * @brief Load configuration and populate global settings
17 *
18 * @note If no config is available, defaults are used
19 *
20 * in the order:
21 * 1) $PARADOS_CONFIG
22 * 2) /etc/parados.conf
23 * 3) ./parados.conf
24 */
25void config_load(void);
26
27#endif /* CONFIG_H */
28