treebird/config.def.h
me@ow.nekobit.net 341aa3fa1a Update README, config template, restructure documentation
FossilOrigin-Name: f11602e6271c422280fd8474abf2ef63ec6021e144e8359f0ff145e423ad1333
2022-03-21 19:35:29 +00:00

66 lines
1.6 KiB
C

/*
* This is the config file for treebird. Any changes you make here requires
* a recompile, but treebird shouldn't take long to compile ;)
*
* You don't need to understand C, I've created simple types to represent
* what you need to set without any C knowledge.
*/
#ifndef CONFIG_H
#define CONFIG_H
#define FALSE 0
#define TRUE 1
/*
* String: canonical_name
*
* The software's recognizable name.
*
* Example: "treebird"
*/
static char* const config_canonical_name = "treebird";
/*
* String: instance_url
*
* The instances URL which all API calls will be sent to via mastodont-c.
* This MUST include a slash at the end, and the protocol (like https://) at the
* beginning
*
* Example: "https://shitposter.club/"
*/
static char* const config_instance_url = "https://my-instace.social/";
/*
* String: url_prefix
*
* The prefix for all urls.
* For most cases, when you are proxying the CGI paths to root, this will be left blank.
*
* Example: "/treebird.cgi"
*/
static char* const config_url_prefix = "";
/*
* Bool: experimental_lookup
*
* Uses experimental acct lookup (@user@domain)
* This allows for the new lookup feature, which can get
* information for local and federated accounts regardless if signed in.
*
* This feature is new and was introduced in the develop branch in 2022.
* Keep this disabled if running an older pleroma build, or because you just
* don't want it.
*/
static const int config_experimental_lookup = TRUE;
/*
* Bool: test_page
*
* Enables the test page which dumps all CGI cookies, useful when
* setting up a reverse proxy
*/
static const unsigned config_test_page = FALSE;
#endif // CONFIG_H