inspircd/README.md

59 lines
2.1 KiB
Markdown
Raw Normal View History

2024-10-27 22:32:45 +00:00
# Instructions
2024-10-27 23:57:25 +00:00
## docker-compose
2024-10-28 00:49:26 +00:00
- if you run into problems. delete stale containers and: `docker rmi inspi4` and `docker volume prune` to make sure there are no stale images and volumes.
2024-10-27 23:57:25 +00:00
- copy `config.env.exmaple` to `config.env` and edit
- optional: if you intend to link, copy `include.default.conf` to `include.conf` and edit
- build: `docker-compose -f docker-compose.yml build` use: `docker-compose.linked.yml` if you intend to link.
- start: `docker-compose -f docker-compose.yml up -d` also use the linked variant if you intend to link.
2024-10-27 22:32:45 +00:00
2024-10-27 23:57:25 +00:00
- ~~`docker build -t inspi4 -t inspi4:latest .`~~
- ~~`docker run -it --rm -e 'DEFAULT_BLOCK_HOST_MASK="nothing"' -net host inspi4`~~
2024-10-27 22:32:45 +00:00
2024-10-27 23:57:25 +00:00
# Optional
- ~~create a custom `links.conf`~~
- ~~`docker run -it --rm -e 'DEFAULT_BLOCK_HOST_MASK="nothing"' -net host -v $(pwd)/links.conf:/etc/inspircd/links.conf:ro inspi4`~~
2024-10-28 00:27:11 +00:00
# Linking
2024-10-28 01:56:50 +00:00
- Run `docker exec -it irc_ircd_linked_1 openssl x509 -sha256 -fingerprint -in /etc/ssl/inspircd/server.crt | tr -d ":" | tr '[:upper:]' '[:lower:]'`
to get the fingerprints.
2024-10-28 00:48:45 +00:00
2024-10-28 00:27:11 +00:00
- On `hub.netcrave.network` add something like this to the `include.conf`:
```
<autoconnect period="8s"
server="leaf.netcrave.network">
<link allowmask="*"
2024-10-28 01:56:50 +00:00
bind="1.2.3.4"
2024-10-28 00:27:11 +00:00
hidden="no"
sslprofile="defaultssl"
2024-10-28 01:56:50 +00:00
fingerprint="c543d8a4a6c825d917d20520e4962e4bcdc3c3c5d856815f7fd626b708842baf"
ipaddr="4.2.3.1"
2024-10-28 00:27:11 +00:00
name="leaf.netcrave.network"
port="&env.SERVER_SSL_PORT;"
recvpass="&env.LINK_RECV_PASSWORD;"
sendpass="&env.LINK_SEND_PASSWORD;"
statshidden="no"
timeout="&env.LINK_TIMEOUT;">
```
- On `leaf.netcrave.network` add something like this to the `include.conf`:
```
<autoconnect period="8s"
server="hub.netcrave.network">
<link allowmask="*"
2024-10-28 01:56:50 +00:00
bind="4.2.3.1"
2024-10-28 00:27:11 +00:00
hidden="no"
sslprofile="defaultssl"
2024-10-28 01:56:50 +00:00
fingerprint="09afef0d8561b8d13e3e7a480ed006caed11d3f5b36c5f4569c60060baa936cd"
ipaddr="1.2.3.4"
2024-10-28 00:27:11 +00:00
name="hub.netcrave.network"
port="&env.SERVER_SSL_PORT;"
recvpass="&env.LINK_RECV_PASSWORD;"
sendpass="&env.LINK_SEND_PASSWORD;"
statshidden="no"
timeout="&env.LINK_TIMEOUT;">
```