This commit is contained in:
Son NK 2020-06-15 23:36:40 +02:00
parent ee6a1a672d
commit 835920182e
3 changed files with 14 additions and 11 deletions

View file

@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [3.2.2] - 2020-06-15
Fix POST /v2/alias/custom/new when DISABLE_ALIAS_SUFFIX is set
## [3.2.1] - 2020-06-15 ## [3.2.1] - 2020-06-15
Fix regressions introduced in 3.2.0 regarding DISABLE_ALIAS_SUFFIX option Fix regressions introduced in 3.2.0 regarding DISABLE_ALIAS_SUFFIX option

View file

@ -61,7 +61,7 @@ docker run --name sl -it --rm \
-e RESET_DB=true \ -e RESET_DB=true \
-e CONFIG=/code/example.env \ -e CONFIG=/code/example.env \
-p 7777:7777 \ -p 7777:7777 \
simplelogin/app:3.2.1 python server.py simplelogin/app:3.2.2 python server.py
``` ```
Then open http://localhost:7777, you should be able to login with `john@wick.com/password` account! Then open http://localhost:7777, you should be able to login with `john@wick.com/password` account!
@ -481,7 +481,7 @@ sudo docker run --rm \
-v $(pwd)/dkim.pub.key:/dkim.pub.key \ -v $(pwd)/dkim.pub.key:/dkim.pub.key \
-v $(pwd)/simplelogin.env:/code/.env \ -v $(pwd)/simplelogin.env:/code/.env \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 flask db upgrade simplelogin/app:3.2.2 flask db upgrade
``` ```
This command could take a while to download the `simplelogin/app` docker image. This command could take a while to download the `simplelogin/app` docker image.
@ -498,7 +498,7 @@ sudo docker run -d \
-p 7777:7777 \ -p 7777:7777 \
--restart always \ --restart always \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 simplelogin/app:3.2.2
``` ```
Next run the `email handler` Next run the `email handler`
@ -513,7 +513,7 @@ sudo docker run -d \
-p 20381:20381 \ -p 20381:20381 \
--restart always \ --restart always \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 python email_handler.py simplelogin/app:3.2.2 python email_handler.py
``` ```
### Nginx ### Nginx

View file

@ -7,7 +7,7 @@ Sometimes upgrading to a major version might require running a manual migration.
If you are running versions prior to 3x, please: If you are running versions prior to 3x, please:
1. first upgrade to 2.1.2 then 1. first upgrade to 2.1.2 then
2. upgrade to the latest version which is 3.2.1 2. upgrade to the latest version which is 3.2.2
<details> <details>
<summary>After upgrade to 3x from 2x</summary> <summary>After upgrade to 3x from 2x</summary>
@ -119,11 +119,11 @@ for user in User.query.all():
</p> </p>
</details> </details>
## Upgrade to the latest version 3.2.1 ## Upgrade to the latest version 3.2.2
```bash ```bash
# Pull the latest version # Pull the latest version
sudo docker pull simplelogin/app:3.2.1 sudo docker pull simplelogin/app:3.2.2
# Stop SimpleLogin containers # Stop SimpleLogin containers
sudo docker stop sl-email sl-migration sl-app sudo docker stop sl-email sl-migration sl-app
@ -139,7 +139,7 @@ sudo docker run --rm \
-v $(pwd)/dkim.pub.key:/dkim.pub.key \ -v $(pwd)/dkim.pub.key:/dkim.pub.key \
-v $(pwd)/simplelogin.env:/code/.env \ -v $(pwd)/simplelogin.env:/code/.env \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 flask db upgrade simplelogin/app:3.2.2 flask db upgrade
# Run init data # Run init data
sudo docker run --rm \ sudo docker run --rm \
@ -149,7 +149,7 @@ sudo docker run --rm \
-v $(pwd)/dkim.key:/dkim.key \ -v $(pwd)/dkim.key:/dkim.key \
-v $(pwd)/dkim.pub.key:/dkim.pub.key \ -v $(pwd)/dkim.pub.key:/dkim.pub.key \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 python init_app.py simplelogin/app:3.2.2 python init_app.py
# Run the webapp container # Run the webapp container
sudo docker run -d \ sudo docker run -d \
@ -161,7 +161,7 @@ sudo docker run -d \
-p 7777:7777 \ -p 7777:7777 \
--restart always \ --restart always \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 simplelogin/app:3.2.2
# Run the email handler container # Run the email handler container
sudo docker run -d \ sudo docker run -d \
@ -173,6 +173,6 @@ sudo docker run -d \
-p 20381:20381 \ -p 20381:20381 \
--restart always \ --restart always \
--network="sl-network" \ --network="sl-network" \
simplelogin/app:3.2.1 python email_handler.py simplelogin/app:3.2.2 python email_handler.py
``` ```