V2 Migration Guide
This guide is intended to assist with migrating Sync-in from version 1.x to version 2.x.
Server Upgradeβ
The steps to follow depend on the installation method selected when deploying Sync-in.
Docker Composeβ
Serverβ
To update the Docker image, edit the docker-compose.yaml file and set the image version to 2:
services:
sync_in:
image: syncin/server:2
Then apply the service update:
docker compose pull sync_in && docker compose up -d && docker image prune -f
Desktop applications repository (optional)β
If you are using it, edit docker-compose.sync-in-desktop-releases.yaml and set the image version to 2:
services:
sync_in_desktop_releases:
image: syncin/desktop-releases:2
Then run the ./config/sync-in-desktop-releases/update.sh command from the directory containing the docker-compose.yaml file.
Node Package Managerβ
At the root of the NPM package, edit the package.json file and update the version to ^2.0.0:
{
"dependencies": {
"@sync-in/server": "^2.0.0"
}
}
Then install the new package version:
rm -rf node_modules package-lock.json && npm install
Desktop Applications Upgradeβ
Desktop applications running version 1.x remain compatible with a server running version 2.x for servers that were previously registered.
However, to re-authenticate or register servers from the applications, clients must be upgraded to version 2.x.
β οΈ Desktop applications running version 1.x will not automatically update to version 2.x.
You can download the latest version of the applications from the download page.
Breaking Changesβ
Server Configurationβ
Some sections of the environment.yaml configuration file have been reorganized and renamed to improve clarity and consistency.
- The
auth.methodkey has been renamed toauth.provider:
auth:
# method: mysql
provider: mysql
- The
auth.ldap.adminGroupkey has been moved toauth.ldap.options.adminGroup:
auth:
ldap:
# adminGroup: admin
options:
adminGroup: admin
Improvementsβ
Reverse Proxy Configurationβ
The Nginx configuration provided with the Docker Compose package has been simplified.
If you used the Nginx configuration template to adapt it to your reverse proxy, make sure to apply these changes or their equivalents in your
configuration.
X-Forwarded-Proto Header Updateβ
-
The following directive must be used:
proxy_set_header X-Forwarded-Proto $scheme; -
It replaces the previous configuration:
proxy_set_header X-Forwarded-Proto $xfp; -
The section below can be removed from the configuration:
map $request_uri $xfp {
# This header must be null on webdav uri
# It causes authentication failures with Microsoft-WebDAV-MiniRedir (Windows)
~^/webdav(?:/.*)? "";
default $scheme;
}
This simplification fixes certain WebDAV-related incompatibilities, reduces Nginx configuration complexity, and standardizes the handling of the
X-Forwarded-Proto.