-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from DavidRajnoha/joinmarket-emulator
Joinmarket emulator
- Loading branch information
Showing
17 changed files
with
1,747 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM inspircd/inspircd-docker:latest | ||
|
||
COPY inspircd.conf /inspircd/conf/inspircd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<server name="irc.example.com" description="JoinMarket IRC Server" id="1AB"> | ||
<admin name="Admin" email="[email protected]" nick="admin"> | ||
|
||
# Bindings | ||
<bind address="*" port="6667" type="clients"> | ||
# Uncomment the following lines if you want SSL support | ||
# | ||
# <bind address="*" port="6697" type="clients" ssl="openssl"> | ||
|
||
# Logging | ||
<log method="file" type="*" level="rawio" target="/inspircd/logs/inspircd.log"> | ||
|
||
# Modules | ||
#<module name="m_whois.so"> | ||
<module name="m_ircv3.so"> | ||
# <module name="m_autojoin.so"> | ||
# Include other necessary modules | ||
# For SSL support, include the SSL module | ||
# | ||
# <module name="m_ssl_openssl.so"> | ||
|
||
# Autojoin Channel Configuration | ||
<autojoin channel="#joinmarket-pit" key="" modes="+nt"> | ||
|
||
# Channel Configuration | ||
<channel name="#joinmarket-pit" modes="+nt"> | ||
|
||
# You can set channel-specific settings here | ||
# Example: Set the channel topic | ||
# <topic setby="admin" time="0">Welcome to the JoinMarket Pit!</topic> | ||
|
||
# Class Configuration | ||
<class name="clients" pingfreq="90" maxclients="500" sendq="262144" recvq="8192"> | ||
|
||
<type name="NetAdmin"> | ||
|
||
# Oper Configuration | ||
<oper name="oper" password="password" host="*" type="NetAdmin"> | ||
|
||
|
||
# Security and Limits | ||
<connect allow="*" timeout="60" flood="20" threshold="1" pingfreq="90" recvq="8192" softsendq="512" fakelag="Yes"> | ||
|
||
# Other configurations as needed | ||
<options suffixquit="Quit message"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM joinmarket-test | ||
|
||
|
||
# Copy the config file to the right place | ||
|
||
# Starts the RPC server | ||
# RUN python3 /jm/clientserver/scripts/jmwalletd.py | ||
|
||
RUN useradd -ms /bin/sh joinmarket | ||
USER 1000:1000 | ||
|
||
# Create the SSL directory and generate the SSL certificates | ||
RUN mkdir -p /home/joinmarket/.joinmarket/ssl \ | ||
&& openssl req -newkey rsa:2048 -nodes -keyout /home/joinmarket/.joinmarket/ssl/key.pem \ | ||
-x509 -days 365 -out /home/joinmarket/.joinmarket/ssl/cert.pem -subj "/C=US/ST=State/L=City/O=Organization/OU=Unit/CN=localhost" | ||
|
||
# Generates the empty wallet, so we can place the config there | ||
RUN python3 /jm/clientserver/scripts/wallet-tool.py generate; exit 0 | ||
|
||
COPY --chown=joinmarket:joinmarket run.sh /home/joinmarket/ | ||
COPY --chown=joinmarket:joinmarket joinmarket.cfg /home/joinmarket/.joinmarket/ | ||
RUN chmod +x /home/joinmarket/run.sh | ||
WORKDIR /home/joinmarket | ||
|
||
CMD ["./run.sh"] | ||
|
Oops, something went wrong.