a51fdb2220
It seemed to be causing people trouble FossilOrigin-Name: d1ace3ca357d048404972bf463b6ccdc7882103c90cb81c3dc9284c79b9ec28e
103 lines
2.6 KiB
C
103 lines
2.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
|
|
#include <mastodont.h>
|
|
#define FALSE 0
|
|
#define TRUE 1
|
|
#define UNSET NULL
|
|
|
|
/*
|
|
* 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-instance.social/";
|
|
|
|
/*
|
|
* OPTIONAL - Mainly for development (or broken servers)
|
|
* String: host_url
|
|
*
|
|
* The host url for redirecting, used in development in localhost.
|
|
* Likely not needed, as Treebird tries at SERVER_NAME (which is your servers host)
|
|
*
|
|
* Example: my-instance.social
|
|
*/
|
|
static char* const config_host_url = UNSET;
|
|
|
|
/*
|
|
* OPTIONAL - For development only
|
|
* String: host_url_insecure
|
|
*
|
|
* If TRUE, then use HTTP
|
|
* If FALSE, then use HTTPS
|
|
*
|
|
* Example: TRUE
|
|
*/
|
|
static int const config_host_url_insecure = FALSE;
|
|
|
|
/* [[ IF YOU DON'T UNDERSTAND THIS, LEAVE IT ALONE ]]
|
|
* Flag: library_flags
|
|
*
|
|
* The flags to pass into the mastodont library. If this value is zero, it is not
|
|
* set. To set multiple flags, use the `|` operator, like `FLAG_1 | FLAG_2`
|
|
*
|
|
* Note: Since Treebird is a HTTP frontend, MSTDNT_FLAG_NO_URI_SANITIZE is already
|
|
* set by default, setting it here is redundant.
|
|
*
|
|
* Example: MSTDNT_FLAG_SSL_UNVERIFIED
|
|
*/
|
|
static uint16_t config_library_flags = 0;
|
|
|
|
/*
|
|
* 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 = FALSE;
|
|
|
|
/*
|
|
* 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
|