Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to apply modules.conf changes #151

Open
Kenji776 opened this issue Jun 10, 2024 · 2 comments
Open

How to apply modules.conf changes #151

Kenji776 opened this issue Jun 10, 2024 · 2 comments

Comments

@Kenji776
Copy link

Kenji776 commented Jun 10, 2024

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

@SadieCat
Copy link
Member

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

@Kenji776
Copy link
Author

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants