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/* Load configuration and populate global settings
16   If no config is available, defaults are used
17   in the order:
18   1) $PARADOS_CONFIG
19   2) /etc/parados.conf
20   3) ./parados.conf */
21void config_load(void);
22
23#endif /* CONFIG_H */
24