Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ 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 `/`:
```sh
docker run -d \
-e "ADDR=your_ip_or_domain" \
Expand Down Expand Up @@ -188,7 +188,7 @@ 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 `/`:
```sh
docker run -d \
-e "ADDR=your_ip_or_domain" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/entrypoint-smp-server
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [ ! -f "${confd}/smp-server.ini" ]; then
--store-log \
--daily-stats \
--source-code \
"$@" > /dev/null 2>&1
"$@" > /dev/null

# Fix path to certificates
if [ -n "${WEB_MANUAL}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/Simplex/Messaging/Server/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ smpServerCLI_ generateSite serveStaticFiles attachStaticFiles cfgPath logPath =
s ->
case strDecode $ encodeUtf8 $ T.pack s of
Right auth -> pure . Just $ ServerPassword auth
_ -> putStrLn "Invalid password. Only latin letters, digits and symbols other than '@' and ':' are allowed" >> serverPassword
_ -> putStrLn "Invalid password. Passwords can contain printable ASCII characters except whitespace, '@', ':' and '/'" >> serverPassword
checkInitOptions InitOptions {sourceCode, serverInfo, operatorCountry, hostingCountry} = do
let err_
| isNothing sourceCode && hasServerInfo serverInfo =
Expand Down