This commit is contained in:
Olicorne 2025-07-28 22:30:56 +09:30 committed by GitHub
commit 4535b27bca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -45,6 +45,12 @@ docker compose run protonmail-bridge init
Wait for the bridge to startup, then you will see a prompt appear for [Proton Mail Bridge interactive shell](https://proton.me/support/bridge-cli-guide). Use the `login` command and follow the instructions to add your account into the bridge. Then use `info` to see the configuration information (username and password). After that, use `exit` to exit the bridge. You may need `CTRL+C` to exit the docker entirely.
If you want to access the cli again later without initializing keys (for example to call `info` again), use this command:
```
docker compose run protonmail-bridge debug
```
## Run
To run the container, use the following command.

View File

@ -4,6 +4,7 @@ set -ex
# Initialize
if [[ $1 == init ]]; then
echo "Entering 'init' mode"
# Initialize pass
gpg --generate-key --batch /protonmail/gpgparams
@ -18,7 +19,14 @@ if [[ $1 == init ]]; then
# Login
/protonmail/proton-bridge --cli $@
elif [[ $1 == debug ]]; then
echo "Entering 'debug' mode"
# Debug mode - call CLI directly
/protonmail/proton-bridge --cli
else
echo "Entering 'default' mode"
# socat will make the conn appear to come from 127.0.0.1
# ProtonMail Bridge currently expects that.