inspircd-docker icon indicating copy to clipboard operation
inspircd-docker copied to clipboard

How to apply modules.conf changes

Open Kenji776 opened this issue 1 year ago • 2 comments

I am a little new to docker and linux so please forgive what is a likely a very simple/silly problem. I need to remove the <module name="connectban"> on line 685 in modules.conf. I know you can load in a custom inspircd.conf by passing it into the docker run command but I don't how to provide a custom modules.conf. I did try directly editing the file in the container with the commands

docker exec -it inspircd /bin/sh
vi /inspircd/conf/modules.conf
(Removed the line and save)
docker restart inspircd 

I also tried modifying the /conf/modules.conf file (not inside the inspircd folder) but that didn't work either. However the configuration changes were not loaded, I also changed the ban message just to see and that didn't change either. What is the correct way to make the needed modifications to the file?

As an additional question, how would I go about clearing bans? My local computer has been banned due to some software I'm working on attempting to connect to the server and now I can't connect which is definitely slowing down my debugging :P

Kenji776 avatar Jun 10 '24 22:06 Kenji776

You can pass the -v flag to docker to replace a config file like this: -v /path/to/my/modules.conf:/inspircd/conf/modules.conf.

That said rather than unload connectban you probably want to add an exception for your local address. You can do this with a generic config include.

https://github.com/inspircd/inspircd-docker/?tab=readme-ov-file#generic-configuration-includes

https://docs.inspircd.org/3/configuration/#exception

sadiepowell avatar Jun 10 '24 22:06 sadiepowell

@SadieCat Thank you very much for that information. I have one other quick question, sorry still just trying to get my head around how this is intended to work. I was able to pass in my customized modules.conf, but when I attempted to additionally pass in a inspircd.conf file I get an error

sh: can't open './conf/config.sh': No such file or directory

I'd like to just get a copy of the default inspircd.conf that comes with the container if none is specified and just make a few tweaks to it. The inspircd.conf I used was the one provided in the repo with the basic config values set (admin email, name, etc). This was the command I ran.

docker run --name ircd -p 6667:6667 -v /home/kenji/docker-images/irc/modules.conf:/inspircd/conf/modules.conf -v /home/kenji/docker-images/irc/inspircd.conf:/inspircd/conf/inspircd.conf inspircd/inspircd-docker

Any help is much appreciated. Thank you!

Kenji776 avatar Jun 12 '24 21:06 Kenji776