treebird-docker/files/instance_env_config.h.patch
ICScaryThings 2c090f71df Reworked container build to allow setting instance url at runtime
I patched neko's code to use getenv() to grab instance url at startup and store
it as a global rather than static const.
2022-06-28 23:02:34 -04:00

14 lines
395 B
Diff

diff --git a/config.def.h b/config.def.h
index a5eed39..0359cd5 100644
--- a/config.h
+++ b/config.h
@@ -32,7 +32,7 @@ static char* const config_canonical_name = "treebird";
*
* Example: "https://shitposter.club/"
*/
-static char* const config_instance_url = "https://my-instance.social/";
+extern char* config_instance_url;
/*
* OPTIONAL - Mainly for development (or broken servers)