Added possibility to change image uploader's form body with Enviroment Variables (#1709)

This commit is contained in:
Paweł
2020-05-30 12:30:30 +02:00
committed by GitHub
parent ccdbedb93c
commit 50d669a1af
4 changed files with 13 additions and 5 deletions
+2
View File
@@ -59,6 +59,8 @@ Env::Env()
"https://braize.pajlada.com/chatterino/twitchemotes/set/%1/"))
, imageUploaderUrl(readStringEnv("CHATTERINO2_IMAGE_UPLOADER_URL",
"https://i.nuuls.com/upload"))
, imageUploaderFormBody(
readStringEnv("CHATTERINO2_IMAGE_UPLOADER_FORM_BODY", "attachment"))
, twitchServerHost(
readStringEnv("CHATTERINO2_TWITCH_SERVER_HOST", "irc.chat.twitch.tv"))
, twitchServerPort(readPortEnv("CHATTERINO2_TWITCH_SERVER_PORT", 443))