Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
e24e157
tests: time out store log write, database operation, TLS handshake an…
evgeny-simplex Nov 20, 2026
bb8c786
agent, servers, transport: stop cancelled and timed-out operations
evgeny-simplex Nov 20, 2026
29c0b38
tests: set the type of the TLS client config in the handshake timeout…
evgeny-simplex Nov 20, 2026
5412061
ntf server: subscribe after a cancelled SMP subscriber creation
evgeny-simplex Nov 20, 2026
f7bc499
agent: rethrow a cancellation during the reconnect of a pooled Postgr…
evgeny-simplex Nov 20, 2026
c14a312
xftp server: handle overflow and allocation limit in a file receive a…
evgeny-simplex Nov 20, 2026
552bac5
fix: make HTTP/2 transport shutdown interruptible
adayhans8-debug Nov 21, 2026
411776a
agent, clients: prevent hangs while a server or event processing is slow
evgeny-simplex Nov 17, 2026
642be36
agent: write acknowledgement event without waiting only in the API call
evgeny-simplex Nov 17, 2026
2ce8fd6
tests: qualify agent INTERNAL error
evgeny-simplex Nov 17, 2026
e1dd283
tests: acknowledge message when event and message queues are full
evgeny-simplex Nov 17, 2026
bdf6a56
tests: exchange greetings before polling a message after restart
evgeny-simplex Nov 17, 2026
4b50358
agent: write SUSPENDED once for each suspension
evgeny-simplex Nov 17, 2026
021fcfd
agent, clients: prevent leaked reply queues and stale HTTP/2 requests
evgeny-simplex Nov 17, 2026
775e6ae
tests: name the test proxy that holds connections until resumed withP…
evgeny-simplex Nov 20, 2026
3a6c879
agent: inline the connection lock checks of builds without conn_lock_…
evgeny-simplex Nov 20, 2026
666a11a
xftp: prevent concurrent transfers from overwriting or removing files
adayhans8-debug Nov 21, 2026
7a3b198
agent, xftp: check message size before storing and require file chunks
adayhans8-debug Nov 21, 2026
e691317
xftp: limit connections to file servers outside the user list
adayhans8-debug Nov 21, 2026
ccc36b1
xftp-server: close stalled connections and reduce memory
adayhans8-debug Nov 21, 2026
39c1ef0
agent: retry deadlocked PostgreSQL transactions
adayhans8-debug Nov 21, 2026
36173d9
servers: preserve store changes and cancellation semantics
adayhans8-debug Nov 21, 2026
d77ceb7
lib: reject keys and certificates with invalid encoding
adayhans8-debug Nov 21, 2026
d573516
servers: consolidate SMP and notification reliability fixes
adayhans8-debug Nov 21, 2026
64c040f
smp server: end the replaced service subscription on each accepted SUB
evgeny-simplex Nov 8, 2026
910783a
smp server: keep the service association of a blocked queue on SUB
evgeny-simplex Nov 8, 2026
9977e2d
smp server: associate every service SUB and NSUB in the queue store
evgeny-simplex Nov 8, 2026
cbd27b5
smp server: count a deleted queue only for the service it belongs to
evgeny-simplex Nov 8, 2026
ea24bc2
tests: replaced notification service connection subscribing again
evgeny-simplex Nov 8, 2026
072c0a2
lib: reject server without key hash, except in short links
evgeny-simplex Nov 7, 2026
f90e5a2
agent: reject short link to server without key hash
evgeny-simplex Nov 7, 2026
bd5d181
agent: compare announced minimum version with the client version
evgeny-simplex Nov 8, 2026
c7471e5
smp server, agent: evaluate the new TVar state in stateTVar updates
evgeny-simplex Nov 8, 2026
a407853
Revert "agent: require version 23 for private routing to preset servers"
evgeny-simplex Nov 8, 2026
2ca80ee
smp server: describe version counters by forwarded command version
evgeny-simplex Nov 8, 2026
0200059
smp server: log closing proxy session at the limit of forwarded commands
evgeny-simplex Nov 8, 2026
2ce3683
smp server: remove a kept relay error at once if its timer cannot start
evgeny-simplex Nov 7, 2026
866f078
smp server: metrics of proxy relay sessions, connections and kept errors
evgeny-simplex Nov 7, 2026
ab39015
smp server: read peer address only in proxy, consistent own-relay stats
evgeny-simplex Nov 7, 2026
f226357
smp server: evaluate the new count when a proxy connection slot is taken
evgeny-simplex Nov 7, 2026
b0699b3
smp server: wait for delayed AUTH responses with timers
evgeny-simplex Nov 9, 2026
149c8b5
smp server: build notification groups strictly
evgeny-simplex Nov 7, 2026
8c49457
smp server: count resolver rejections separately
sh-agents Nov 4, 2026
caeac50
smp server: close idle relay connections
evgeny-simplex Oct 21, 2026
966ff5d
agent: check connection when adding send queue
evgeny-simplex Oct 21, 2026
8fd2a62
simplify createSndConn
evgeny-simplex Oct 22, 2026
7d64f29
Fix IPv6 host and port formatting in addresses and links
spencer-michaels-1pw Sep 12, 2026
13dc075
Test IPv6 address and link encoding
spencer-michaels-1pw Sep 12, 2026
3c88834
ntf server: use multiple APNS clients for each provider
epoberezkin Aug 10, 2026
e48ef26
ntf server: batch SMP subscriptions
adayhans8-debug Nov 21, 2026
8a843c9
tests: check every recipient key restored after link swaps
spaced4ndy-agents Oct 28, 2026
1ea80e8
tests: check the forwarded correlation ID below the nonce version
spaced4ndy-agents Oct 29, 2026
a09845d
docs: server stats persistence plan
shumvgolove Oct 23, 2026
333ccb0
docs: server stats persistence design
shumvgolove Oct 23, 2026
9ffd900
smp server: add server_stats tables
shumvgolove Oct 23, 2026
1a266b2
smp server: add stats_save_interval option
shumvgolove Oct 23, 2026
e2c9f03
smp server: track pending active queue hashes
shumvgolove Oct 23, 2026
6b6a3b0
smp server: add stats store
shumvgolove Oct 23, 2026
38dbf23
smp server: save stats periodically
shumvgolove Oct 23, 2026
05535ce
smp server: restore pending hashes on cancel
shumvgolove Oct 23, 2026
d007985
smp server: skip stats save on closed store
shumvgolove Oct 23, 2026
63edf95
smp server: validate stats_save_interval
shumvgolove Oct 23, 2026
9817013
smp server: tidy stats store exports
shumvgolove Oct 23, 2026
521a441
agent: reject low-order DH keys in double ratchet
shumvgolove Oct 2, 2026
2f0ff21
smp-server: merge send and sendMsg threads
shumvgolove Sep 30, 2026
13732c5
smp-server: expire inactive clients in one thread
shumvgolove Sep 30, 2026
153d1c5
transport: do not retain last received TLS record
shumvgolove Sep 30, 2026
4356be1
tests: run proxy leak tests with test environment
shumvgolove Oct 16, 2026
6c4b97b
tests: run relay limit test with test environment
shumvgolove Oct 16, 2026
1e48b4c
fix: close TLS contexts without waiting for peer
adayhans8-debug Nov 21, 2026
e3942bf
tests: time out store log write, database operation, TLS handshake an…
evgeny-simplex Nov 20, 2026
751e686
agent, servers, transport: stop cancelled and timed-out operations
evgeny-simplex Nov 20, 2026
b796885
tests: set the type of the TLS client config in the handshake timeout…
evgeny-simplex Nov 20, 2026
28142b2
xftp server: handle overflow and allocation limit in a file receive a…
evgeny-simplex Nov 20, 2026
3a6f1ae
xftp: remove chunk files without records when the server starts
evgeny-simplex Nov 16, 2026
30d64a6
Report remote-control listener startup failures without blocking
Michael-Zebratrix Nov 15, 2026
2850f05
tests: reproduce proxy request leak, stuck relay
shumvgolove Sep 30, 2026
a3448c9
smp: remove unsent and timed-out proxy requests
shumvgolove Sep 30, 2026
d474a3c
tests: pass CorrCbNonce to forwardSMPTransmission
shumvgolove Oct 14, 2026
bf350bb
tests: run proxy leak tests with test environment
shumvgolove Oct 16, 2026
871a85d
tests: commands without response after timeout or cancel
evgeny-simplex Nov 7, 2026
c7a2282
smp server: release forwarded commands when their sender disconnects
evgeny-simplex Nov 7, 2026
c703317
clients: stop waiting for send queue space when a command ends
evgeny-simplex Nov 7, 2026
0a181c3
tests: command release tests next to the send queue test
evgeny-simplex Nov 7, 2026
1f2851a
tests: remove the pending stuck relay session test
evgeny-simplex Nov 7, 2026
0b61833
clients: remove code comment
evgeny-simplex Nov 7, 2026
8b8c545
tests: batched commands without response, commands of closed client
evgeny-simplex Nov 7, 2026
8c535e9
clients: release batched commands that end without a response
evgeny-simplex Nov 7, 2026
98f6642
tests: command kept for late response after its lifetime
evgeny-simplex Nov 7, 2026
924d3ed
clients: start command lifetime when queued, skip queue when closed
evgeny-simplex Nov 7, 2026
142545b
clients: keep the address of the connected server
evgeny-simplex Nov 7, 2026
3235560
smp server: one proxy session per relay, limit pending relay connections
evgeny-simplex Nov 7, 2026
36ec941
smp server: complete relay session setup when the sender disconnects
evgeny-simplex Nov 7, 2026
5a10e13
smp server: reject repeated forwarded commands below version 23
evgeny-simplex Nov 7, 2026
9eecbd6
smp server: count forwarded commands below and from version 23
evgeny-simplex Nov 7, 2026
a0ee440
smp server: announce minimum client version and latest app releases
evgeny-simplex Nov 7, 2026
c666c71
agent: notify about client support announced by preset servers
evgeny-simplex Nov 7, 2026
57aae32
tests: type the version list in the forwarding stats test
evgeny-simplex Nov 7, 2026
d65c677
Revert "agent: require version 23 for private routing to preset servers"
evgeny-simplex Nov 8, 2026
2e819b0
transport: option to detect dead connections with data in flight
Narasimha-sc Nov 3, 2026
83df145
transport: set the unacked-data timeout only on Linux and Android
Narasimha-sc Nov 3, 2026
927197e
transport: move the TCP_USER_TIMEOUT import next to its use
Narasimha-sc Nov 3, 2026
2594382
docs: correct the timeout example in the unacked-data timeout plan
Narasimha-sc Nov 3, 2026
16e7ac3
docs: reword the unacked-data timeout plan
Narasimha-sc Nov 3, 2026
2eed196
Remove XFTP receive chunks before reporting completion
angerman Oct 16, 2026
17fbbd8
transport: support domain names for SOCKS proxy, fix IPv6 proxy addre…
earmark-halt Oct 8, 2026
be21c72
build: check out git submodules when building from source
earmark-halt Oct 8, 2026
8fdcb08
agent: decrypt messages out of order after disabling KEM
evgeny-simplex Sep 29, 2026
ec837c7
fix executableName from 'file-server' to 'xftp-server'
Passw Aug 19, 2026
9736a1d
docker: show smp-server init errors
Ap4sh Jul 3, 2026
db5c001
Fix typo in Init.hs
JohnClint-ai Jun 16, 2025
ef5f232
resolver: read .simplex addresses from .env
sh-agents Nov 12, 2026
144a5b1
resolver: wait for the node instead of exiting
sh-agents Nov 12, 2026
bf9698a
resolver: give reth 2 minutes to stop
sh-agents Nov 12, 2026
2395938
resolver: resolve .simplex names on mainnet by default
brenzi-agent Nov 21, 2026
83e55e7
resolver: test an unconfigured TLD with one that has no defaults
brenzi-agent Nov 21, 2026
39f3359
resolver: document the .simplex proxies and the name policy check
brenzi-agent Nov 21, 2026
36ec0b7
resolver: test the .simplex defaults; document the image rebuild
brenzi-agent Nov 21, 2026
b2155be
core: keep receiving from other servers while one is slow to reply
evgeny-simplex Nov 6, 2026
0734f82
agent: drop redundant lock in service join error and Maybe in ack
evgeny-simplex Nov 7, 2026
dd905ad
agent: detect server requests made in connection locks
evgeny-simplex Nov 7, 2026
7210a76
agent: delete new queue when switch is aborted while it is created
evgeny-simplex Nov 7, 2026
bbfb284
agent: refuse switch start, postpone rotation during ratchet sync
evgeny-simplex Nov 7, 2026
686269c
agent: delete reply queue when service request expires while created
evgeny-simplex Nov 7, 2026
176c752
tests: check deleted queues in the store log after the server stops
evgeny-simplex Nov 8, 2026
ee66b3d
agent: delete expired request connection at once, its late queue on c…
evgeny-simplex Nov 8, 2026
9cd9d67
agent: refuse switch before its new queue during ratchet sync
evgeny-simplex Nov 8, 2026
d677fdd
ci: lint and test the resolver in the Linux build job when it changes
brenzi-agent Nov 4, 2026
a2be97f
ci: test the resolver against a seeded chain and known mainnet names
brenzi-agent Nov 4, 2026
5c32b31
ci: seed with the subname registrar approved
brenzi-agent Nov 4, 2026
60d5e61
debug
evgeny-simplex Oct 21, 2026
1fbb4b9
tests: detect and mark hung tests as failed
dpwiz Apr 18, 2024
a8b86ca
Added user flag to docker run command
Apr 11, 2025
099d055
Added '--network=host' to build commands for
Aug 8, 2024
47fadb6
transport: import exception handler for nonblocking TLS close
adayhans8-debug Nov 21, 2026
90a7fdf
server: reconcile consolidated build errors
adayhans8-debug Nov 21, 2026
e66d644
servers: share the delay until the daily stats time
sh-agents Nov 19, 2026
b54da06
smp protocol: LSWP swaps link data and keys only over the known data
spaced4ndy-agents Oct 28, 2026
a15b832
protocol: expose short-link swap API and fix regression tests
adayhans8-debug Nov 21, 2026
176d75e
smp server: swap link data and keys atomically, refuse LSET on many keys
spaced4ndy-agents Oct 28, 2026
16c9a12
server: restore short-link keys with concurrency-aware API
adayhans8-debug Nov 21, 2026
dbbe5c7
tests: restore service notification and switch regressions
adayhans8-debug Nov 21, 2026
ae4b294
smp-server: limit forwards in flight per relay
shumvgolove Sep 30, 2026
3181f3e
smp-server: count forwards above relay limit
shumvgolove Oct 14, 2026
56a30d8
server: finish relay concurrency metrics and HTTP2 test setup
adayhans8-debug Nov 21, 2026
33ddd13
server: make service subscription replacement counts consistent
adayhans8-debug Nov 21, 2026
cc87fec
tests: keep short-link responses within block size
adayhans8-debug Nov 21, 2026
117afec
fix SMP AUTH delayed response delivery
adayhans8-debug Nov 21, 2026
2b3c8bb
fix consolidated server and PostgreSQL regressions
adayhans8-debug Nov 21, 2026
b9f3979
clean up failed invitation joins
adayhans8-debug Nov 21, 2026
9d6918d
restore fair SMP message delivery
adayhans8-debug Nov 21, 2026
6d6baed
preserve connection state on failed joins
adayhans8-debug Nov 21, 2026
53d2b14
prevent notification queue head-of-line blocking
adayhans8-debug Nov 21, 2026
1d94822
update PostgreSQL schemas and integration timeout
adayhans8-debug Nov 21, 2026
cbfb1f4
record generated PostgreSQL schemas
adayhans8-debug Nov 21, 2026
83444ca
Merge branch 'master' of https://github.com/simplex-chat/simplexmq in…
adayhans8-debug Nov 23, 2026
32becdd
fix TLS shutdown and full-queue ACK handling
adayhans8-debug Nov 23, 2026
d7d5ebd
bound TLS close without waiting for peer
adayhans8-debug Nov 23, 2026
b60f101
make TLS close bounded and cancellation-safe
adayhans8-debug Nov 23, 2026
24f29d6
update push client tests for sharded workers
adayhans8-debug Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 72 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,41 @@ jobs:
runs-on: ubuntu-latest
outputs:
reduced: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == true || (github.event_name == 'push' && github.ref_type == 'branch' && github.repository != 'simplex-chat/simplexmq') }}
resolver: ${{ steps.changes.outputs.resolver }}
steps:
- name: Reject a manual run on a tag
if: github.event_name == 'workflow_dispatch' && github.ref_type == 'tag'
run: |
echo "::error::A manual run starts on a branch; to retry a release, re-run the jobs of its tag push."
exit 1

- name: Clone project to check changes
if: github.event_name != 'push'
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Check changes
id: changes
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
case "$GITHUB_EVENT_NAME" in
pull_request)
base=HEAD^1
;;
workflow_dispatch)
base=$(gh api "repos/$GITHUB_REPOSITORY/compare/master...$GITHUB_REF_NAME" --jq .merge_base_commit.sha)
git fetch -q --depth=1 origin "$base"
;;
*)
echo "resolver=true" >> "$GITHUB_OUTPUT"
exit 0
;;
esac
git diff --quiet "$base" HEAD -- scripts/resolver/service .github/workflows/build.yml || echo "resolver=true" >> "$GITHUB_OUTPUT"

- name: Clone project
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/checkout@v3
Expand Down Expand Up @@ -95,6 +123,7 @@ jobs:
cache_o0: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable') }}
image_cache: ghcr.io/${{ github.repository_owner }}/simplexmq-build-cache:${{ matrix.os }}-${{ matrix.arch }}-ghc${{ matrix.ghc }}
source_hashes: dist-newstyle/sources.sha256
resolver: ${{ needs.maybe-release.outputs.resolver == 'true' && matrix.os == '24.04' && matrix.arch == 'x86-64' }}
runs-on: ${{ matrix.runner }}
services: &build-services
postgres:
Expand Down Expand Up @@ -158,6 +187,47 @@ jobs:
with:
submodules: recursive

- name: Set up uv
if: env.resolver == 'true'
# uv takes Python from .python-version, the version of the Dockerfile's runtime stage.
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Lint resolver
if: env.resolver == 'true'
working-directory: scripts/resolver/service
run: uv run --frozen ruff check .

- name: Set up Node
if: env.resolver == 'true'
uses: actions/setup-node@v4
with:
node-version: 22

- name: Build SNRC contracts
if: env.resolver == 'true'
env:
SNRC_CONTRACTS: ${{ runner.temp }}/snrc
SNRC_CONTRACTS_REPO: https://github.com/brenzi-agent/simplex-namespace-contract
SNRC_CONTRACTS_COMMIT: ac7c68789b129de925a876b1eafa320c6a095693
COREPACK_ENABLE_DOWNLOAD_PROMPT: 0
run: |
git clone -q --filter=blob:none "$SNRC_CONTRACTS_REPO" "$SNRC_CONTRACTS"
cd "$SNRC_CONTRACTS"
git checkout -q "$SNRC_CONTRACTS_COMMIT"
git submodule -q update --init --filter=blob:none ens-contracts
corepack enable
pnpm install --frozen-lockfile
cd ens-contracts
pnpm install --frozen-lockfile
pnpm exec hardhat compile

- name: Test resolver
if: env.resolver == 'true'
working-directory: scripts/resolver/service
env:
SNRC_CONTRACTS: ${{ runner.temp }}/snrc
run: uv run --frozen pytest -v

- name: Set up Docker Buildx
if: matrix.should_run == true
uses: simplex-chat/docker-setup-buildx-action@v3
Expand Down Expand Up @@ -296,11 +366,7 @@ jobs:
if: matrix.should_run == true && matrix.client_postgres == true
shell: docker exec -t builder sh -eu {0}
run: |
chmod -fR 777 ~/.cabal ./dist-client-postgres || :; git config --global --add safe.directory '*'
scripts/ci/prune-old-builds.sh dist-client-postgres
cabal update
cabal build --builddir=dist-client-postgres --jobs=$(nproc) --enable-tests -fserver_postgres -fclient_postgres -fslow_servers ${{ env.ghc_options }} simplexmq-test
mkdir -p /out
cabal build --builddir=dist-client-postgres --jobs=$(nproc) --enable-tests -fserver_postgres -fclient_postgres -fslow_servers -fconn_lock_checks ${{ env.ghc_options }} simplexmq-test
bin=$(find /project/dist-client-postgres -name simplexmq-test -type f -executable)
cp "$bin" /out/simplexmq-test-client-postgres

Expand Down Expand Up @@ -503,10 +569,7 @@ jobs:
run: |
scripts/ci/prune-old-builds.sh dist-newstyle dist-postgres dist-client-postgres
if [ "${{ matrix.client_postgres }}" = true ]; then
cabal build --builddir=dist-client-postgres --jobs=$(nproc) --enable-tests -fserver_postgres -fclient_postgres -fslow_servers --ghc-options=-O0 simplexmq-test
else
cabal build --builddir=dist-postgres --jobs=$(nproc) --enable-tests -fserver_postgres --ghc-options=-O0
cabal build --jobs=$(nproc) --ghc-options=-O0
cabal build --builddir=dist-client-postgres --jobs=$(nproc) --enable-tests -fserver_postgres -fclient_postgres -fslow_servers -fconn_lock_checks --ghc-options=-O0 simplexmq-test
fi

- name: Record source hashes for -O0 build (GHC 8.10.7)
Expand Down Expand Up @@ -552,29 +615,3 @@ jobs:
should_run: true
client_postgres: true
steps: *build-steps

# =============================
# Resolver test job
# =============================

# The SNRC resolver is Python, so this job needs none of the Haskell toolchain
# above and runs independently of it.

resolver-test:
name: "resolver (python)"
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v3

- name: Set up uv
# uv takes Python from .python-version, the version of the Dockerfile's runtime stage.
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Lint
working-directory: scripts/resolver/service
run: uv run --frozen ruff check .

- name: Test
working-directory: scripts/resolver/service
run: uv run --frozen pytest -v
26 changes: 26 additions & 0 deletions .github/workflows/resolver-mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: resolver mainnet

on:
schedule:
- cron: "17 6 * * *"
workflow_dispatch:
pull_request:
paths:
- .github/workflows/resolver-mainnet.yml

jobs:
mainnet:
name: "resolver on mainnet"
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v3

- name: Set up uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Test known names
working-directory: scripts/resolver/service
env:
SNRC_MAINNET_RPC: ${{ secrets.SNRC_MAINNET_RPC || 'https://ethereum-rpc.publicnode.com' }}
run: uv run --frozen pytest -v test_ground_truth.py -k MainnetTests
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ WORKDIR /project
ARG APP
RUN if [ -z "$APP" ]; then printf "Please spcify \$APP build-arg.\n"; exit 1; fi

# Check that git submodules are checked out
RUN if [ ! -f cbits/blst/src/server.c ] || [ ! -f cbits/libbbs/src/bbs.c ]; then printf "Git submodules are missing, run: git submodule update --init --recursive\n"; exit 1; fi

# Compile app
RUN cabal update
RUN cabal build exe:$APP
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,21 @@ On Linux, you can deploy smp and xftp server using Docker. This will download im

- `smp-server`

You must change **your_ip_or_domain**. `-e "pass=password"` is optional variable to password-protect your `smp` server:
You must change **your_ip_or_domain**. `-e "PASS=password"` is optional variable to password-protect your `smp` server. Passwords can contain printable ASCII characters except whitespace, `@`, `:` and `/`. Run the container as a non-root user (`-u "non_root_user_id"`) with ownership of the mounted directories to mitigate privilege escalation.
```sh
docker run -d \
-e "ADDR=your_ip_or_domain" \
-e "PASS=password" \
-p 5223:5223 \
-v $HOME/simplex/smp/config:/etc/opt/simplex:z \
-v $HOME/simplex/smp/logs:/var/opt/simplex:z \
-u "non_root_user_id"
simplexchat/smp-server:latest
```

- `xftp-server`

You must change **your_ip_or_domain** and **maximum_storage**.
You must change **your_ip_or_domain** and **maximum_storage**. Run the container as a non-root user (`-u "non_root_user_id"`) with ownership of the mounted directories to mitigate privilege escalation.
```sh
docker run -d \
-e "ADDR=your_ip_or_domain" \
Expand All @@ -139,6 +140,7 @@ On Linux, you can deploy smp and xftp server using Docker. This will download im
-v $HOME/simplex/xftp/config:/etc/opt/simplex-xftp:z \
-v $HOME/simplex/xftp/logs:/var/opt/simplex-xftp:z \
-v $HOME/simplex/xftp/files:/srv/xftp:z \
-u "non_root_user_id"
simplexchat/xftp-server:latest
```

Expand Down Expand Up @@ -174,8 +176,9 @@ On Linux, you can build smp server using Docker.
git clone https://github.com/simplex-chat/simplexmq
cd simplexmq
git checkout stable
DOCKER_BUILDKIT=1 docker build -t local/smp-server --build-arg APP="smp-server" --build-arg APP_PORT="5223" . # For xmp-server
DOCKER_BUILDKIT=1 docker build -t local/xftp-server --build-arg APP="xftp-server" --build-arg APP_PORT="443" . # For xftp-server
git submodule update --init --recursive
DOCKER_BUILDKIT=1 docker build --network=host -t local/smp-server --build-arg APP="smp-server" --build-arg APP_PORT="5223" . # For smp-server
DOCKER_BUILDKIT=1 docker build --network=host -t local/xftp-server --build-arg APP="xftp-server" --build-arg APP_PORT="443" . # For xftp-server
```

2. Create directories for persistent Docker configuration:
Expand All @@ -188,20 +191,21 @@ On Linux, you can build smp server using Docker.

- `smp-server`

You must change **your_ip_or_domain**. `-e "pass=password"` is optional variable to password-protect your `smp` server:
You must change **your_ip_or_domain**. `-e "PASS=password"` is optional variable to password-protect your `smp` server. Passwords can contain printable ASCII characters except whitespace, `@`, `:` and `/`. Run the container as a non-root user (`-u "non_root_user_id"`) with ownership of the mounted directories to mitigate privilege escalation.
```sh
docker run -d \
-e "ADDR=your_ip_or_domain" \
-e "PASS=password" \
-p 5223:5223 \
-v $HOME/simplex/smp/config:/etc/opt/simplex:z \
-v $HOME/simplex/smp/logs:/var/opt/simplex:z \
-u "non_root_user_id"
simplexchat/smp-server:latest
```

- `xftp-server`

You must change **your_ip_or_domain** and **maximum_storage**.
You must change **your_ip_or_domain** and **maximum_storage**. Run the container as a non-root user (`-u "non_root_user_id"`) with ownership of the mounted directories to mitigate privilege escalation.
```sh
docker run -d \
-e "ADDR=your_ip_or_domain" \
Expand All @@ -210,6 +214,7 @@ On Linux, you can build smp server using Docker.
-v $HOME/simplex/xftp/config:/etc/opt/simplex-xftp:z \
-v $HOME/simplex/xftp/logs:/var/opt/simplex-xftp:z \
-v $HOME/simplex/xftp/files:/srv/xftp:z \
-u "non_root_user_id"
simplexchat/xftp-server:latest
```

Expand All @@ -234,6 +239,7 @@ On Linux, you can build smp server using Docker.
git clone https://github.com/simplex-chat/simplexmq
cd simplexmq
git checkout stable
git submodule update --init --recursive
cabal update
cabal build exe:smp-server exe:xftp-server
```
Expand Down
2 changes: 1 addition & 1 deletion cbits/libbbs
Loading