These are chat archives for go-gitea/gitea
Paulmaybe require registration on the freenode channel
Paulbut freenode admins are quite good at getting rid of spammers as well
jcgruenhage (@jan.christian:gruenhage.xyz)You should also consider, that the bot was banned so fast that he hadn't even completed what he wanted to say :D I've had that bot in a few other (IRC) rooms too, and there would have been another few messages. Also, that one is banned in Matrix now, so even if he came back, he can only spam in IRC now ^^
belgin[m] on FreenodeIs the GITEA_WORK_DIR supposed to be set by the user?
belgin[m] on Freenodethe GITEA_WORK_DIR env var*
PaulI've never set it
belgin[m] on FreenodeI see from a quick glance that if it can't find GITEA_WORK_DIR or GOGS_WORK_DIR in the environment, it defaults to what most likely is set at init to be the binary directory
belgin[m] on Freenodeand then in the setup function of serv.go it tries to chdir there
CadairAlso, on the spam front, you have to trade off a little spam for more accessibility to your community.
CadairLots of people are very comfortable using irc, and that's what they want to use.
strk on FreenodeI banned the IP of that guy (22.214.171.124)
strk on FreenodeBelgin[m]: you're correct, that's what happens, so yes set manually (and feel free to request using PWD instead of "binary directory" which is really bad thing to do)
belgin[m] on Freenodestrk, I don't really understand the point of that chdir in cmd/serv.go
belgin[m] on Freenodejudging by that if guard i imagine it has something to do with path to the sqlite database
strk on Freenodepossibly, anyway the thing is some paths are sometimes needed
belgin[m] on Freenodeif that's the case why not use the path as set in the config?
strk on Freenodenot only for sqlite db but also for the default custom/ path
strk on Freenodecan the path in config be relative ?
belgin[m] on Freenodeprobably
belgin[m] on Freenodehm, for some reason I dont' see sqlite3 in the drop down list at first run
strk on Freenodeit takes a build tag, if you're building it yourself
strk on Freenode(to enable sqlite)
belgin[m] on Freenodeyeah I just noticed this thanks
belgin[m] on Freenodestrk, under the dropdown list after selecting sqlite3, there's this "Please use the absolute path when you start as service."
belgin[m] on FreenodeAlso, I'm not sure setting it to pwd will fix anything
strk on Freenodetrue, would just be somewhat less weird when you give relative paths
strk on Freenodeas in: GITEA_WORK_DIR=there/ gitea web
strk on Freenodeor just: gitea web # from the directory containing the custom/ subdir
belgin[m] on Freenodemy hunch is it tries to chdir into appPath even though you give it an absolute path to your sqlite3 database
belgin[m] on Freenodei'm going to test this
MTecknology on FreenodeNooooooooooooooooooooo!!!!!!!!!!!!!!!!!
MTecknology on Freenodeworse yet... well beyond the return deadline and the controller I actually want clocks in at only 2x that cost, but it at least comes with a full 1GB of cache.