diff --git a/Makefile b/Makefile
index 298d15e6809c04ae72ebe84d5e56ad7ee4912267..59847d34c1641ee7c54a98e645cea72f139c1c57 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ run:
 
 ## instance: create an instance for local development
 instance:
-	@cozy-stack instances add cozy.tools:8080 --passphrase cozy --apps home,store,drive,photos,settings,contacts,notes --email claude@cozy.tools --locale fr --public-name Claude --context-name dev
+	@cozy-stack instances add cozy.localhost:8080 --passphrase cozy --apps home,store,drive,photos,settings,contacts,notes --email claude@cozy.localhost --locale fr --public-name Claude --context-name dev
 
 ## lint: enforce a consistent code style and detect code smells
 lint: scripts/golangci-lint
diff --git a/cmd/apps.go b/cmd/apps.go
index 1f5fde6171865af28847a82a920d218c0e345619..1d424a150e8f7ef603f194d06d5695c3601b87b9 100644
--- a/cmd/apps.go
+++ b/cmd/apps.go
@@ -56,7 +56,7 @@ var installWebappCmd = &cobra.Command{
 	Short: `Install an application with the specified slug name
 from the given source URL.`,
 	Example: `
-$ cozy-stack apps install --domain cozy.tools:8080 drive registry://drive/stable
+$ cozy-stack apps install --domain cozy.localhost:8080 drive registry://drive/stable
 $ cozy-stack apps install banks 'git://github.com/cozy/cozy-banks.git#build'
 $ cozy-stack apps install myapp 'git+ssh://git@gitlab.example.net/team/myapp.git#build'
 `,
@@ -148,10 +148,10 @@ Default channel is stable.
 Default version is latest.
 `,
 	Example: `
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/stable/1.0.1
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/stable
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/1.2.0
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline/stable/1.0.1
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline/stable
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline/1.2.0
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline
 `,
 	RunE: func(cmd *cobra.Command, args []string) error {
 		return installApp(cmd, args, consts.Konnectors)
@@ -546,7 +546,7 @@ func showWebAppTriggers(cmd *cobra.Command, args []string, appType string) error
 var listTriggerCmd = &cobra.Command{
 	Use:     "ls",
 	Short:   `List triggers`,
-	Example: "$ cozy-stack triggers ls --domain cozy.tools:8080",
+	Example: "$ cozy-stack triggers ls --domain cozy.localhost:8080",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if flagDomain == "" {
 			errPrintfln("%s", errMissingDomain)
@@ -574,7 +574,7 @@ var listTriggerCmd = &cobra.Command{
 var launchTriggerCmd = &cobra.Command{
 	Use:     "launch [triggerId]",
 	Short:   `Creates a job from a specific trigger`,
-	Example: "$ cozy-stack triggers launch --domain cozy.tools:8080 748f42b65aca8c99ec2492eb660d1891",
+	Example: "$ cozy-stack triggers launch --domain cozy.localhost:8080 748f42b65aca8c99ec2492eb660d1891",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		return launchTrigger(cmd, args)
 	},
diff --git a/cmd/feature.go b/cmd/feature.go
index 72d78cb9c124293ac070501ad8b402ee913ffd34..1195006bcca0170974766036a93173f38289a533 100644
--- a/cmd/feature.go
+++ b/cmd/feature.go
@@ -26,7 +26,7 @@ var featureShowCmd = &cobra.Command{
 	Long: `
 cozy-stack feature show displays the feature flags that are shown by apps.
 `,
-	Example: `$ cozy-stack feature show --domain cozy.tools:8080`,
+	Example: `$ cozy-stack feature show --domain cozy.localhost:8080`,
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if flagDomain == "" {
 			errPrintfln("%s", errMissingDomain)
@@ -84,7 +84,7 @@ It can also take a list of flags to update.
 
 If you give a null value, the flag will be removed.
 `,
-	Example: `$ cozy-stack feature flags --domain cozy.tools:8080 '{"add_this_flag": true, "remove_this_flag": null}'`,
+	Example: `$ cozy-stack feature flags --domain cozy.localhost:8080 '{"add_this_flag": true, "remove_this_flag": null}'`,
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if flagDomain == "" {
 			errPrintfln("%s", errMissingDomain)
@@ -126,7 +126,7 @@ list (no merge).
 
 All the sets can be removed by setting an empty list ('').
 `,
-	Example: `$ cozy-stack feature sets --domain cozy.tools:8080 'set1 set2'`,
+	Example: `$ cozy-stack feature sets --domain cozy.localhost:8080 'set1 set2'`,
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if flagDomain == "" {
 			errPrintfln("%s", errMissingDomain)
diff --git a/cmd/instances.go b/cmd/instances.go
index a62c7a5080c2644812da347a868934eeb12cd1ea..5ef839056d6c2bcb7b133b4ba2a8dac60ec4711e 100644
--- a/cmd/instances.go
+++ b/cmd/instances.go
@@ -86,7 +86,7 @@ var showInstanceCmd = &cobra.Command{
 cozy-stack instances show allows to show the instance on the cozy for a
 given domain.
 `,
-	Example: "$ cozy-stack instances show cozy.tools:8080",
+	Example: "$ cozy-stack instances show cozy.localhost:8080",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if len(args) == 0 {
 			return cmd.Usage()
@@ -113,7 +113,7 @@ var showDBPrefixInstanceCmd = &cobra.Command{
 cozy-stack instances show allows to show the instance prefix on the cozy for a
 given domain. The prefix is used for databases and VFS prefixing.
 `,
-	Example: "$ cozy-stack instances show-db-prefix cozy.tools:8080",
+	Example: "$ cozy-stack instances show-db-prefix cozy.localhost:8080",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if len(args) == 0 {
 			return cmd.Usage()
@@ -145,7 +145,7 @@ If the COZY_DISABLE_INSTANCES_ADD_RM env variable is set, creating and
 destroying instances will be desactivated and the content of this variable will
 be used as the error message.
 `,
-	Example: "$ cozy-stack instances add --passphrase cozy --apps drive,photos,settings cozy.tools:8080",
+	Example: "$ cozy-stack instances add --passphrase cozy --apps drive,photos,settings cozy.localhost:8080",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if reason := os.Getenv("COZY_DISABLE_INSTANCES_ADD_RM"); reason != "" {
 			return fmt.Errorf("Sorry, instances add is disabled: %s", reason)
@@ -283,7 +283,7 @@ settings for a specified domain.
 var updateInstancePassphraseCmd = &cobra.Command{
 	Use:     "set-passphrase <domain> <new-passphrase>",
 	Short:   "Change the passphrase of the instance",
-	Example: "$ cozy-stack instances set-passphrase cozy.tools:8080 myN3wP4ssowrd!",
+	Example: "$ cozy-stack instances set-passphrase cozy.localhost:8080 myN3wP4ssowrd!",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if len(args) != 2 {
 			return cmd.Usage()
@@ -334,7 +334,7 @@ var quotaInstanceCmd = &cobra.Command{
 cozy-stack instances set-disk-quota allows to change the disk-quota of the
 instance of the given domain. Set the quota to 0 to remove the quota.
 `,
-	Example: "$ cozy-stack instances set-disk-quota cozy.tools:8080 3GB",
+	Example: "$ cozy-stack instances set-disk-quota cozy.localhost:8080 3GB",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if len(args) != 2 {
 			return cmd.Usage()
@@ -364,7 +364,7 @@ var debugInstanceCmd = &cobra.Command{
 cozy-stack instances debug allows to activate or deactivate the debugging of a
 specific domain.
 `,
-	Example: "$ cozy-stack instances debug --domain cozy.tools:8080 true",
+	Example: "$ cozy-stack instances debug --domain cozy.localhost:8080 true",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		action := "enable"
 		domain := flagDomain
@@ -723,7 +723,7 @@ var cliTokenInstanceCmd = &cobra.Command{
 var oauthTokenInstanceCmd = &cobra.Command{
 	Use:     "token-oauth <domain> <clientid> <scopes>",
 	Short:   "Generate a new OAuth access token",
-	Example: "$ cozy-stack instances token-oauth cozy.tools:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker",
+	Example: "$ cozy-stack instances token-oauth cozy.localhost:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if len(args) < 3 {
 			return cmd.Usage()
@@ -753,7 +753,7 @@ var oauthTokenInstanceCmd = &cobra.Command{
 var oauthRefreshTokenInstanceCmd = &cobra.Command{
 	Use:     "refresh-token-oauth <domain> <clientid> <scopes>",
 	Short:   "Generate a new OAuth refresh token",
-	Example: "$ cozy-stack instances refresh-token-oauth cozy.tools:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker",
+	Example: "$ cozy-stack instances refresh-token-oauth cozy.localhost:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if len(args) < 3 {
 			return cmd.Usage()
@@ -925,7 +925,7 @@ var importCmd = &cobra.Command{
 var showSwiftPrefixInstanceCmd = &cobra.Command{
 	Use:     "show-swift-prefix <domain>",
 	Short:   "Show the instance swift prefix of the specified domain",
-	Example: "$ cozy-stack instances show-swift-prefix cozy.tools:8080",
+	Example: "$ cozy-stack instances show-swift-prefix cozy.localhost:8080",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		var v map[string]string
 
@@ -1000,7 +1000,7 @@ var instanceAppVersionCmd = &cobra.Command{
 var setAuthModeCmd = &cobra.Command{
 	Use:     "auth-mode [domain] [auth-mode]",
 	Short:   `Set instance auth-mode`,
-	Example: "$ cozy-stack instances auth-mode cozy.tools:8080 two_factor_mail",
+	Example: "$ cozy-stack instances auth-mode cozy.localhost:8080 two_factor_mail",
 	Long: `Change the authentication mode for an instance. Two options are allowed:
 - two_factor_mail
 - basic
diff --git a/cmd/root.go b/cmd/root.go
index 468e256a98c74b33cb07b21e7560336547fc9183..c517771c27d78488aca42aa710877a5d3c035c4e 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -23,7 +23,7 @@ import (
 // is stored relatively to the cozy-stack binary.
 const DefaultStorageDir = "storage"
 
-const defaultDevDomain = "cozy.tools:8080"
+const defaultDevDomain = "cozy.localhost:8080"
 
 var flagDomain string
 
diff --git a/cmd/settings.go b/cmd/settings.go
index a223db94c896438c66c14a13342fa813830181c0..42e7d74a4a7af3d245debf8bc5143082328ad436 100644
--- a/cmd/settings.go
+++ b/cmd/settings.go
@@ -24,7 +24,7 @@ It can also take a list of settings to update.
 
 If you give a blank value, the setting will be removed.
 `,
-	Example: "$ cozy-stack settings --domain cozy.tools:8080 context:beta,public_name:John,to_remove:",
+	Example: "$ cozy-stack settings --domain cozy.localhost:8080 context:beta,public_name:John,to_remove:",
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if flagDomain == "" {
 			errPrintfln("%s", errMissingDomain)
diff --git a/docs/INSTALL.md b/docs/INSTALL.md
index 46c1854d39ad7f1f9b329f51c3c52c68e0bd5a77..c3c7e9c6c8223942e68b90a058fbc875a510040c 100644
--- a/docs/INSTALL.md
+++ b/docs/INSTALL.md
@@ -71,20 +71,20 @@ And then create an instance for development:
 make instance
 ```
 
-The cozy-stack server listens on http://cozy.tools:8080/ by default. See
+The cozy-stack server listens on http://cozy.localhost:8080/ by default. See
 `cozy-stack --help` for more informations.
 
-The above command will create an instance on http://cozy.tools:8080/ with the
-passphrase `cozy`. By default this will create a `storage/` entry in your current directory, containing all your instances by their URL. An instance "cozy.tools:8080" will have its stored files in `storage/cozy.tools:8080/`. Installed apps will be found in the `.cozy_apps/` directory of each instance.
+The above command will create an instance on http://cozy.localhost:8080/ with the
+passphrase `cozy`. By default this will create a `storage/` entry in your current directory, containing all your instances by their URL. An instance "cozy.localhost:8080" will have its stored files in `storage/cozy.localhost:8080/`. Installed apps will be found in the `.cozy_apps/` directory of each instance.
 
 Make sure the full stack is up with:
 
 ```bash
-curl -H 'Accept: application/json' 'http://cozy.tools:8080/status/'
+curl -H 'Accept: application/json' 'http://cozy.localhost:8080/status/'
 ```
 
 You can then remove your test instance:
 
 ```bash
-cozy-stack instances rm cozy.tools:8080
+cozy-stack instances rm cozy.localhost:8080
 ```
diff --git a/docs/admin.md b/docs/admin.md
index 5d2e198cb513bfadab234875cbf900d9cf668f36..ace09e6cc291084e3c6a6bb101e559cf4481b9d8 100644
--- a/docs/admin.md
+++ b/docs/admin.md
@@ -44,7 +44,7 @@ Content-Type: application/vnd.api+json
             "type": "instances",
             "id": "3af6ed68a6d9146b3529d2584a001d98",
             "attributes": {
-                "domain": "alice.cozy.tools:8080",
+                "domain": "alice.cozy.localhost:8080",
                 "prefix": "cozy7d3d5947e7f3b0c674d1b8644646348e",
                 "locale": "fr",
                 "context": "dev",
@@ -62,7 +62,7 @@ Content-Type: application/vnd.api+json
             "type": "instances",
             "id": "3af6ed68a6d9146b3529d2584a01d557",
             "attributes": {
-                "domain": "bob.cozy.tools:8080",
+                "domain": "bob.cozy.localhost:8080",
                 "prefix": "cozybf682065ca3c7d64f2dafc6cc12fe702",
                 "locale": "fr",
                 "context": "dev",
@@ -104,9 +104,9 @@ Content-Type: application/json
 ```json
 {
     "instances": [
-        "alice.cozy.tools",
-        "bob.cozy.tools",
-        "zoe.cozy.tools"
+        "alice.cozy.localhost",
+        "bob.cozy.localhost",
+        "zoe.cozy.localhost"
     ]
 }
 ```
@@ -118,7 +118,7 @@ Fixes the 64k (or multiple) content mismatch files of an instance
 #### Request
 
 ```http
-POST /instances/alice.cozy.tools/fixers/content-mismatch HTTP/1.1
+POST /instances/alice.cozy.localhost/fixers/content-mismatch HTTP/1.1
 Content-Type: application/json
 ```
 
@@ -157,7 +157,7 @@ Content-Type: application/json
       "updated_at": "2019-07-30 14:32:29.862882247 +0200 CEST"
     }
   ],
-  "domain": "alice.cozy.tools"
+  "domain": "alice.cozy.localhost"
 }
 ```
 
@@ -168,7 +168,7 @@ Delete the accounts which are not linked to a konnector
 #### Request
 
 ```http
-POST /instances/alice.cozy.tools/fixers/orphan-account HTTP/1.1
+POST /instances/alice.cozy.localhost/fixers/orphan-account HTTP/1.1
 ```
 
 
@@ -215,7 +215,7 @@ HTTP/1.1 200 OK
       "help_link": "https://forum.cozy.io/",
       "noreply_address": "noreply@cozy.beta",
       "noreply_name": "My Cozy Beta",
-      "sharing_domain": "cozy.tools"
+      "sharing_domain": "cozy.localhost"
     },
     "context": "dev",
     "registries": [
@@ -270,7 +270,7 @@ HTTP/1.1 200 OK
     "help_link": "https://forum.cozy.io/",
     "noreply_address": "noreply@cozy.beta",
     "noreply_name": "My Cozy Beta",
-    "sharing_domain": "cozy.tools"
+    "sharing_domain": "cozy.localhost"
   },
   "context": "dev",
   "registries": [
@@ -305,7 +305,7 @@ and each JSON represents an error.
 #### Request
 
 ```http
-GET /instances/alice.cozy.tools/fsck HTTP/1.1
+GET /instances/alice.cozy.localhost/fsck HTTP/1.1
 ```
 
 #### Response
@@ -315,7 +315,7 @@ HTTP/1.1 200 OK
 ```
 
 ```json
-{"type":"index_orphan_tree","dir_doc":{"type":"directory","_id":"34a61c6ceb38075fe971cc6a3263659f","_rev":"2-94ca3acfebf927cb231d125c57f85bd7","name":"Photos","dir_id":"45496c5c442dabecae87de3d73008ec4","created_at":"2020-12-15T18:23:21.498323965+01:00","updated_at":"2020-12-15T18:23:21.498323965+01:00","tags":[],"path":"/Photos","cozyMetadata":{"doctypeVersion":"1","metadataVersion":1,"createdAt":"2020-12-15T18:23:21.498327603+01:00","updatedAt":"2020-12-15T18:23:21.498327603+01:00","createdOn":"http://alice.cozy.tools:8080/"},"size":"0","is_dir":true,"is_orphan":true,"has_cycle":false},"is_file":false,"is_version":false}
+{"type":"index_orphan_tree","dir_doc":{"type":"directory","_id":"34a61c6ceb38075fe971cc6a3263659f","_rev":"2-94ca3acfebf927cb231d125c57f85bd7","name":"Photos","dir_id":"45496c5c442dabecae87de3d73008ec4","created_at":"2020-12-15T18:23:21.498323965+01:00","updated_at":"2020-12-15T18:23:21.498323965+01:00","tags":[],"path":"/Photos","cozyMetadata":{"doctypeVersion":"1","metadataVersion":1,"createdAt":"2020-12-15T18:23:21.498327603+01:00","updatedAt":"2020-12-15T18:23:21.498327603+01:00","createdOn":"http://alice.cozy.localhost:8080/"},"size":"0","is_dir":true,"is_orphan":true,"has_cycle":false},"is_file":false,"is_version":false}
 {"type":"index_missing","file_doc":{"type":"file","name":"Photos","dir_id":"","created_at":"2020-12-15T18:23:21.527308795+01:00","updated_at":"2020-12-15T18:23:21.527308795+01:00","tags":null,"path":"/Photos","size":"4096","mime":"application/octet-stream","class":"files","executable":true,"is_dir":false,"is_orphan":false,"has_cycle":false},"is_file":true,"is_version":false}
 ```
 
@@ -326,7 +326,7 @@ This endpoint will check if no trigger has been installed twice (or more).
 #### Request
 
 ```http
-POST /instances/alice.cozy.tools/checks/triggers HTTP/1.1
+POST /instances/alice.cozy.localhost/checks/triggers HTTP/1.1
 ```
 
 #### Response
@@ -358,7 +358,7 @@ revision tree (no generation smaller for a children than its parent).
 #### Request
 
 ```http
-POST /instances/alice.cozy.tools/checks/shared HTTP/1.1
+POST /instances/alice.cozy.localhost/checks/shared HTTP/1.1
 ```
 
 #### Response
@@ -380,7 +380,7 @@ Content-Type: application/json
 #### Request
 
 ```http
-POST /instances/alice.cozy.tools/checks/sharings HTTP/1.1
+POST /instances/alice.cozy.localhost/checks/sharings HTTP/1.1
 ```
 
 #### Response
@@ -568,7 +568,7 @@ Content-Type: application/json
   "v1": {
     "counter": 1,
     "domains": [
-      "bob.cozy.tools:8081"
+      "bob.cozy.localhost:8081"
     ]
   },
   "v2a": {
@@ -580,17 +580,17 @@ Content-Type: application/json
   "v3a": {
     "counter": 2,
     "domains": [
-      "alice.cozy.tools:8081",
-      "ru.cozy.tools:8081"
+      "alice.cozy.localhost:8081",
+      "ru.cozy.localhost:8081"
     ]
   },
   "v3b": {
     "counter": 4,
     "domains": [
-      "foo.cozy.tools:8081",
-      "bar.cozy.tools:8081",
-      "baz.cozy.tools:8081",
-      "foobar.cozy.tools:8081"
+      "foo.cozy.localhost:8081",
+      "bar.cozy.localhost:8081",
+      "baz.cozy.localhost:8081",
+      "foobar.cozy.localhost:8081"
     ]
   }
 }
@@ -604,7 +604,7 @@ Retrieves a Swift object
 
 ```http
 GET /swift/vfs/67a88b22520680b1fae840%2F9a8a0%2F18d02%2FiYbkfuCDEMaVoIXg HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 ```
 
 #### Response
@@ -626,7 +626,7 @@ Put an object in Swift
 
 ```http
 PUT /swift/vfs/67a88b22520680b1fae840%2F9a8a0%2F18d02%2FiYbkfuCDEMaVoIXg HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 Content-Type: text/plain
 ```
 
@@ -642,7 +642,7 @@ Removes an object from Swift
 
 ```http
 DELETE /swift/vfs/67a88b22520680b1fae840%2F9a8a0%2F18d02%2FiYbkfuCDEMaVoIXg HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 ```
 
 ### GET /swift/vfs
@@ -653,7 +653,7 @@ List Swift objects of an instance
 
 ```http
 GET /swift/vfs HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 ```
 
 #### Response
diff --git a/docs/assets.md b/docs/assets.md
index e4059960fc4e5068b04ab56fc497d460fb186c98..2a4ab815dd3259990b941820514f51797ac01e7e 100644
--- a/docs/assets.md
+++ b/docs/assets.md
@@ -37,8 +37,8 @@ In development mode, a `/dev` route is available to render a template or a mail
 with given parameter. For example:
 
 ```
-http://cozy.tools:8080/dev/templates/error.html?Error=oops
-http://cozy.tools:8080/dev/mails/two_factor?TwoFactorPasscode=123456
+http://cozy.localhost:8080/dev/templates/error.html?Error=oops
+http://cozy.localhost:8080/dev/mails/two_factor?TwoFactorPasscode=123456
 ```
 
 ## In production
diff --git a/docs/auth.md b/docs/auth.md
index 0b6eedf60672182fa62e27ce25da23f136275df1..86f90e8cc9f923293f2b6524214019190946a523 100644
--- a/docs/auth.md
+++ b/docs/auth.md
@@ -304,7 +304,7 @@ Two parameters in the query string can be sent:
 - `redirect` (optional), where the user will be redirected after the confirmation.
 
 ```http
-GET /auth/confirm?state=51814f30-5818-0139-9348-543d7eb8149c&redirect=http://banks.cozy.tools:8080/ HTTP/1.1
+GET /auth/confirm?state=51814f30-5818-0139-9348-543d7eb8149c&redirect=http://banks.cozy.localhost:8080/ HTTP/1.1
 ```
 
 The application can know the user has confirmed their identity by subscribing
@@ -320,7 +320,7 @@ Send the hashed password for confirming the authentication.
 
 ```http
 HTTP/1.1 302 Moved Temporarily
-Location: http://banks.cozy.tools:8080/?state=51814f30-5818-0139-9348-543d7eb8149c&code=543d7eb8149c
+Location: http://banks.cozy.localhost:8080/?state=51814f30-5818-0139-9348-543d7eb8149c&code=543d7eb8149c
 ```
 
 #### Real-time via websockets
diff --git a/docs/bitwarden.md b/docs/bitwarden.md
index f6c894e6555f153d93a3dd3152db04a1add43212..c0667e6de1445647aacf071f5489bceb22a44718 100644
--- a/docs/bitwarden.md
+++ b/docs/bitwarden.md
@@ -446,7 +446,7 @@ Content-Type: application/json
       "Id": "38ac39d0-d48d-11e9-91bf-f37e45d48c79",
       "Name": "Cozy",
       "Key": "4.HUzVDQVAFc4JOpW3/j/QwZeET0mXOiDW5s/HdpxLZ2GFnGcxOm1FE4XD2p7XTSwORXO/Lo8y0A87UhXKEXzfHZmpJR04pbpUPr4NJbjRKv/cSkNFlvm0rIUw/m0Jkft/gew9v3QfkVSGdSZk5XIimwkTQ5WM+WCStxbQJIKAH+AoEA5q6t9mpNNlTAQvMgqs8u7CJwSjeZ7qbabfEUVX1HIPgxC3BtVUkySRSws/gUNeMwY23kAJJQYT+uuMooZUr7umU6YkEHG2RQZwCCjVHX4czxZRWsVo/xQOYoNr7DjgCf92D7OrJlFmDtQjzSy2BjotN6vn+1SwtHbeDILWaQ==",
-      "BillingEmail": "me@cozy.tools",
+      "BillingEmail": "me@cozy.localhost",
       "Plan": "TeamsAnnually",
       "PlanType": 5,
       "Seats": 2,
diff --git a/docs/cli/cozy-stack_apps.md b/docs/cli/cozy-stack_apps.md
index 9908be80b672068b54c5f38f0f4e3e7c9737a20c..ab73cdfbcd385d839395d79c73f2f2d1720b55c6 100644
--- a/docs/cli/cozy-stack_apps.md
+++ b/docs/cli/cozy-stack_apps.md
@@ -19,7 +19,7 @@ cozy-stack apps <command> [flags]
 
 ```
       --all-domains     work on all domains iteratively
-      --domain string   specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string   specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help            help for apps
 ```
 
diff --git a/docs/cli/cozy-stack_apps_install.md b/docs/cli/cozy-stack_apps_install.md
index 9d7bb84debcdb14f0497648481a5de5cf03d34ee..1b6fe3bc26d3363c14ae8043bc1e219b20b364f5 100644
--- a/docs/cli/cozy-stack_apps_install.md
+++ b/docs/cli/cozy-stack_apps_install.md
@@ -15,7 +15,7 @@ cozy-stack apps install <slug> [sourceurl] [flags]
 
 ```
 
-$ cozy-stack apps install --domain cozy.tools:8080 drive registry://drive/stable
+$ cozy-stack apps install --domain cozy.localhost:8080 drive registry://drive/stable
 $ cozy-stack apps install banks 'git://github.com/cozy/cozy-banks.git#build'
 $ cozy-stack apps install myapp 'git+ssh://git@gitlab.example.net/team/myapp.git#build'
 
@@ -35,7 +35,7 @@ $ cozy-stack apps install myapp 'git+ssh://git@gitlab.example.net/team/myapp.git
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_apps_ls.md b/docs/cli/cozy-stack_apps_ls.md
index 1f203fded88f994dbaa91514379dbd1009f5683a..6b66de2802ff20015343dfbc841e508ba112a557 100644
--- a/docs/cli/cozy-stack_apps_ls.md
+++ b/docs/cli/cozy-stack_apps_ls.md
@@ -19,7 +19,7 @@ cozy-stack apps ls [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_apps_show.md b/docs/cli/cozy-stack_apps_show.md
index 360103844712a31435222d338c28524fc266de28..2525586198907209ee200fa738d4004675140179 100644
--- a/docs/cli/cozy-stack_apps_show.md
+++ b/docs/cli/cozy-stack_apps_show.md
@@ -19,7 +19,7 @@ cozy-stack apps show <slug> [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_apps_uninstall.md b/docs/cli/cozy-stack_apps_uninstall.md
index df1d6f735d294dbae2e47b062791800ea73a930c..e035b4ea20470e105bf1b6f90f0a31a2f1a520c7 100644
--- a/docs/cli/cozy-stack_apps_uninstall.md
+++ b/docs/cli/cozy-stack_apps_uninstall.md
@@ -19,7 +19,7 @@ cozy-stack apps uninstall <slug> [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_apps_update.md b/docs/cli/cozy-stack_apps_update.md
index 55074e35a83041b2f0d7e016f918326dff15a6c1..72b71ba7e8571df13e9812b4ccd9a5e552454293 100644
--- a/docs/cli/cozy-stack_apps_update.md
+++ b/docs/cli/cozy-stack_apps_update.md
@@ -20,7 +20,7 @@ cozy-stack apps update <slug> [sourceurl] [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_features_flags.md b/docs/cli/cozy-stack_features_flags.md
index fa4a9db9361f34fdcdeb3c55f1c2245f1ad34184..8e2f4f2f4068238b8c04179fcf7e94a0ef86114d 100644
--- a/docs/cli/cozy-stack_features_flags.md
+++ b/docs/cli/cozy-stack_features_flags.md
@@ -19,7 +19,7 @@ cozy-stack features flags [flags]
 ### Examples
 
 ```
-$ cozy-stack feature flags --domain cozy.tools:8080 '{"add_this_flag": true, "remove_this_flag": null}'
+$ cozy-stack feature flags --domain cozy.localhost:8080 '{"add_this_flag": true, "remove_this_flag": null}'
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_features_sets.md b/docs/cli/cozy-stack_features_sets.md
index 970f9e9abe67ff9e79b3e5467dc1ffad26cb5d83..5e5f0686eaa0434217b98fe595946a70d29349cd 100644
--- a/docs/cli/cozy-stack_features_sets.md
+++ b/docs/cli/cozy-stack_features_sets.md
@@ -20,7 +20,7 @@ cozy-stack features sets [flags]
 ### Examples
 
 ```
-$ cozy-stack feature sets --domain cozy.tools:8080 'set1 set2'
+$ cozy-stack feature sets --domain cozy.localhost:8080 'set1 set2'
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_features_show.md b/docs/cli/cozy-stack_features_show.md
index 85a033ed4ecdbea1addd7b4254ead6dbab2136a3..07b8e373a2855c299bb355380e28be8b3287de90 100644
--- a/docs/cli/cozy-stack_features_show.md
+++ b/docs/cli/cozy-stack_features_show.md
@@ -15,7 +15,7 @@ cozy-stack features show [flags]
 ### Examples
 
 ```
-$ cozy-stack feature show --domain cozy.tools:8080
+$ cozy-stack feature show --domain cozy.localhost:8080
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_files.md b/docs/cli/cozy-stack_files.md
index b4067e07949f3fc75cd45641b0cfe1cc51fd6a15..26ee6e31d389d464dd42f08af7335d817b1f8cc7 100644
--- a/docs/cli/cozy-stack_files.md
+++ b/docs/cli/cozy-stack_files.md
@@ -20,7 +20,7 @@ cozy-stack files <command> [flags]
 ### Options
 
 ```
-      --domain string   specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string   specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help            help for files
 ```
 
diff --git a/docs/cli/cozy-stack_files_exec.md b/docs/cli/cozy-stack_files_exec.md
index 457cfc8f2bbf67b447dd9435521ffd3f4264c6c2..5faea19fa641764bf12c4d53e16d0c268b1a20db 100644
--- a/docs/cli/cozy-stack_files_exec.md
+++ b/docs/cli/cozy-stack_files_exec.md
@@ -35,7 +35,7 @@ cozy-stack files exec [--domain domain] <command> [flags]
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_files_import.md b/docs/cli/cozy-stack_files_import.md
index 6f98504a67d8167c838909c2a0dd2e3e7e305055..6b49ebb3e86ea87c139f1f663698b9a93b0e261c 100644
--- a/docs/cli/cozy-stack_files_import.md
+++ b/docs/cli/cozy-stack_files_import.md
@@ -22,7 +22,7 @@ cozy-stack files import [--domain domain] [--match pattern] --from <name> --to <
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_files_usage.md b/docs/cli/cozy-stack_files_usage.md
index b8dec2f0cfd20d355195296159bee07b4a5a67e4..ec9af79939f83af1c58129962eec519584d7be6d 100644
--- a/docs/cli/cozy-stack_files_usage.md
+++ b/docs/cli/cozy-stack_files_usage.md
@@ -19,7 +19,7 @@ cozy-stack files usage [--domain domain] [--trash] [flags]
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_instances_add.md b/docs/cli/cozy-stack_instances_add.md
index c991e1594e81f12642b25fdd65813d07572e05a5..9189ca015b357294a5247112c0168f88ba4850a9 100644
--- a/docs/cli/cozy-stack_instances_add.md
+++ b/docs/cli/cozy-stack_instances_add.md
@@ -20,7 +20,7 @@ cozy-stack instances add <domain> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances add --passphrase cozy --apps drive,photos,settings cozy.tools:8080
+$ cozy-stack instances add --passphrase cozy --apps drive,photos,settings cozy.localhost:8080
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_auth-mode.md b/docs/cli/cozy-stack_instances_auth-mode.md
index f7b3a5850f4ac06a5e2f0f0483d011c33d5dc705..cf279aed498da18be5fa25fefd470574e7c388b9 100644
--- a/docs/cli/cozy-stack_instances_auth-mode.md
+++ b/docs/cli/cozy-stack_instances_auth-mode.md
@@ -16,7 +16,7 @@ cozy-stack instances auth-mode [domain] [auth-mode] [flags]
 ### Examples
 
 ```
-$ cozy-stack instances auth-mode cozy.tools:8080 two_factor_mail
+$ cozy-stack instances auth-mode cozy.localhost:8080 two_factor_mail
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_debug.md b/docs/cli/cozy-stack_instances_debug.md
index c9f9d3c0611bca95e6dabc450d30923619d0d6bd..2392a959733373aef5b7db42c8eb13bffffb0f1b 100644
--- a/docs/cli/cozy-stack_instances_debug.md
+++ b/docs/cli/cozy-stack_instances_debug.md
@@ -16,13 +16,13 @@ cozy-stack instances debug <true/false> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances debug --domain cozy.tools:8080 true
+$ cozy-stack instances debug --domain cozy.localhost:8080 true
 ```
 
 ### Options
 
 ```
-      --domain string   Specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string   Specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help            help for debug
       --ttl duration    Specify how long the debug mode will last (default 24h0m0s)
 ```
diff --git a/docs/cli/cozy-stack_instances_refresh-token-oauth.md b/docs/cli/cozy-stack_instances_refresh-token-oauth.md
index 95dcfec8f4f7e85d82b505a2e074e76a333c619c..f537d742108b21b91f089caf9e3734e3b7b8aff0 100644
--- a/docs/cli/cozy-stack_instances_refresh-token-oauth.md
+++ b/docs/cli/cozy-stack_instances_refresh-token-oauth.md
@@ -9,7 +9,7 @@ cozy-stack instances refresh-token-oauth <domain> <clientid> <scopes> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances refresh-token-oauth cozy.tools:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker
+$ cozy-stack instances refresh-token-oauth cozy.localhost:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_set-disk-quota.md b/docs/cli/cozy-stack_instances_set-disk-quota.md
index e2d4989641b156e6468a4bbd8534cf33d8c7b101..ca85e1a62fe7136e913499f3e45bc69d76b45b4e 100644
--- a/docs/cli/cozy-stack_instances_set-disk-quota.md
+++ b/docs/cli/cozy-stack_instances_set-disk-quota.md
@@ -16,7 +16,7 @@ cozy-stack instances set-disk-quota <domain> <disk-quota> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances set-disk-quota cozy.tools:8080 3GB
+$ cozy-stack instances set-disk-quota cozy.localhost:8080 3GB
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_set-passphrase.md b/docs/cli/cozy-stack_instances_set-passphrase.md
index d7d26a6da04bb8f8336782939b38ed4173eb6575..837573e47371c66aac616ed9c8c8d96b4f6279a1 100644
--- a/docs/cli/cozy-stack_instances_set-passphrase.md
+++ b/docs/cli/cozy-stack_instances_set-passphrase.md
@@ -9,7 +9,7 @@ cozy-stack instances set-passphrase <domain> <new-passphrase> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances set-passphrase cozy.tools:8080 myN3wP4ssowrd!
+$ cozy-stack instances set-passphrase cozy.localhost:8080 myN3wP4ssowrd!
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_show-db-prefix.md b/docs/cli/cozy-stack_instances_show-db-prefix.md
index c8c000e7407fe00ffab7a1a26ed8a2eb17e0a2ce..6b02364af3a189fef8106118442cf024646ddf1c 100644
--- a/docs/cli/cozy-stack_instances_show-db-prefix.md
+++ b/docs/cli/cozy-stack_instances_show-db-prefix.md
@@ -16,7 +16,7 @@ cozy-stack instances show-db-prefix <domain> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances show-db-prefix cozy.tools:8080
+$ cozy-stack instances show-db-prefix cozy.localhost:8080
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_show-swift-prefix.md b/docs/cli/cozy-stack_instances_show-swift-prefix.md
index 15c25974f4bb22372d8a32cd95c4657c39c1b11e..412a293b1e9ea3367768257b06b2309c607ab617 100644
--- a/docs/cli/cozy-stack_instances_show-swift-prefix.md
+++ b/docs/cli/cozy-stack_instances_show-swift-prefix.md
@@ -9,7 +9,7 @@ cozy-stack instances show-swift-prefix <domain> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances show-swift-prefix cozy.tools:8080
+$ cozy-stack instances show-swift-prefix cozy.localhost:8080
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_show.md b/docs/cli/cozy-stack_instances_show.md
index 20c15dc6222e67b022395fb4f473e0f65695e3a0..e61c1912e741f9a3e588530958e2b512704f8cae 100644
--- a/docs/cli/cozy-stack_instances_show.md
+++ b/docs/cli/cozy-stack_instances_show.md
@@ -16,7 +16,7 @@ cozy-stack instances show <domain> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances show cozy.tools:8080
+$ cozy-stack instances show cozy.localhost:8080
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_instances_token-oauth.md b/docs/cli/cozy-stack_instances_token-oauth.md
index a7c0e891dcfa9f2a3510485727349cb9949cc535..b64ce0d64720f094716bda2297cb7c8a9da289eb 100644
--- a/docs/cli/cozy-stack_instances_token-oauth.md
+++ b/docs/cli/cozy-stack_instances_token-oauth.md
@@ -9,7 +9,7 @@ cozy-stack instances token-oauth <domain> <clientid> <scopes> [flags]
 ### Examples
 
 ```
-$ cozy-stack instances token-oauth cozy.tools:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker
+$ cozy-stack instances token-oauth cozy.localhost:8080 727e677187a51d14ccd59cc0bd000a1d io.cozy.files io.cozy.jobs:POST:sendmail:worker
 ```
 
 ### Options
diff --git a/docs/cli/cozy-stack_jobs.md b/docs/cli/cozy-stack_jobs.md
index bd9faefc2984053509a57ab87cf9b1fdd3fb4792..b6dfc32a4f65872456c978d4b761f90c4d440a9c 100644
--- a/docs/cli/cozy-stack_jobs.md
+++ b/docs/cli/cozy-stack_jobs.md
@@ -5,7 +5,7 @@ Launch and manage jobs and workers
 ### Options
 
 ```
-      --domain string   specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string   specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help            help for jobs
 ```
 
diff --git a/docs/cli/cozy-stack_jobs_purge-old-jobs.md b/docs/cli/cozy-stack_jobs_purge-old-jobs.md
index 0a388633781df6dfbcd973ef52a8671b7dbf4bbd..3accb5e35e19c539eb13e8c28a170cf052fae8b4 100644
--- a/docs/cli/cozy-stack_jobs_purge-old-jobs.md
+++ b/docs/cli/cozy-stack_jobs_purge-old-jobs.md
@@ -26,7 +26,7 @@ $ cozy-stack jobs purge-old-jobs example.mycozy.cloud
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_jobs_run.md b/docs/cli/cozy-stack_jobs_run.md
index c836252aaa1f07df11ef8172f2d57da97171bff6..5a98f063906834b8ce5f4ea3981ba8c98a8c031a 100644
--- a/docs/cli/cozy-stack_jobs_run.md
+++ b/docs/cli/cozy-stack_jobs_run.md
@@ -27,7 +27,7 @@ $ cozy-stack jobs run service --domain example.mycozy.cloud --json '{"slug": "ba
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_konnectors.md b/docs/cli/cozy-stack_konnectors.md
index 87488503e0e81aac8d111797c49890f32cd06ab3..94bd58c8d90ed252fff5dc9cb4519e1611f1a54a 100644
--- a/docs/cli/cozy-stack_konnectors.md
+++ b/docs/cli/cozy-stack_konnectors.md
@@ -19,7 +19,7 @@ cozy-stack konnectors <command> [flags]
 
 ```
       --all-domains         work on all domains iteratively
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help                help for konnectors
       --parameters string   override the parameters of the installed konnector
 ```
diff --git a/docs/cli/cozy-stack_konnectors_deactivate-maintenance.md b/docs/cli/cozy-stack_konnectors_deactivate-maintenance.md
index 85adacfdec3889ec1d527621a9cec39f8fb6da98..8994905b52362b4f3e12d9f3bc6e64f3c3f8d529 100644
--- a/docs/cli/cozy-stack_konnectors_deactivate-maintenance.md
+++ b/docs/cli/cozy-stack_konnectors_deactivate-maintenance.md
@@ -19,7 +19,7 @@ cozy-stack konnectors deactivate-maintenance [slug] [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_install.md b/docs/cli/cozy-stack_konnectors_install.md
index c51fd3c4b68a02351e0e8fefc1ad4df3a867adec..fe9699312640cbae1dc19e37fc73cac34bf55af4 100644
--- a/docs/cli/cozy-stack_konnectors_install.md
+++ b/docs/cli/cozy-stack_konnectors_install.md
@@ -27,10 +27,10 @@ cozy-stack konnectors install <slug> [sourceurl] [flags]
 
 ```
 
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/stable/1.0.1
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/stable
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/1.2.0
-$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline/stable/1.0.1
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline/stable
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline/1.2.0
+$ cozy-stack konnectors install --domain cozy.localhost:8080 trainline registry://trainline
 
 ```
 
@@ -47,7 +47,7 @@ $ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://tr
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_ls-maintenances.md b/docs/cli/cozy-stack_konnectors_ls-maintenances.md
index 859c7d0f41258b760efc180be4d072a9b33586a9..413c7bb61a717a0ea3bfa263c4f443ee49937dde 100644
--- a/docs/cli/cozy-stack_konnectors_ls-maintenances.md
+++ b/docs/cli/cozy-stack_konnectors_ls-maintenances.md
@@ -19,7 +19,7 @@ cozy-stack konnectors ls-maintenances [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_ls.md b/docs/cli/cozy-stack_konnectors_ls.md
index 0ad663f965c54009302bba27fc132adbc4b05914..5dd89d3c77e2772625749f52cdf22231882003b1 100644
--- a/docs/cli/cozy-stack_konnectors_ls.md
+++ b/docs/cli/cozy-stack_konnectors_ls.md
@@ -19,7 +19,7 @@ cozy-stack konnectors ls [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_maintenance.md b/docs/cli/cozy-stack_konnectors_maintenance.md
index 491facdb22fa4d67076f42ac261b68ebfd12449f..eeb5c071dd0f866e4d5e29c6db2931fdecb37197 100644
--- a/docs/cli/cozy-stack_konnectors_maintenance.md
+++ b/docs/cli/cozy-stack_konnectors_maintenance.md
@@ -21,7 +21,7 @@ cozy-stack konnectors maintenance [slug] [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_run.md b/docs/cli/cozy-stack_konnectors_run.md
index 0a4ea04cd321dd5b4ae2af5cf060b13adfb1b308..a46f747e79d066d042ff2b837ba5982a5bdf3df8 100644
--- a/docs/cli/cozy-stack_konnectors_run.md
+++ b/docs/cli/cozy-stack_konnectors_run.md
@@ -24,7 +24,7 @@ cozy-stack konnectors run <slug> [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_show.md b/docs/cli/cozy-stack_konnectors_show.md
index 612b071d7b7f427ba364e3ce097122ecf5fe5998..387a20e464b0c35d9cec8a5fe22d1947a00539a1 100644
--- a/docs/cli/cozy-stack_konnectors_show.md
+++ b/docs/cli/cozy-stack_konnectors_show.md
@@ -19,7 +19,7 @@ cozy-stack konnectors show <slug> [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_uninstall.md b/docs/cli/cozy-stack_konnectors_uninstall.md
index 8b7888ff66906da7d36b7811967d906920ccdb87..351cc8dbfe5e3e81446d0154dbc7093f4e3c0af9 100644
--- a/docs/cli/cozy-stack_konnectors_uninstall.md
+++ b/docs/cli/cozy-stack_konnectors_uninstall.md
@@ -19,7 +19,7 @@ cozy-stack konnectors uninstall <slug> [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_konnectors_update.md b/docs/cli/cozy-stack_konnectors_update.md
index 2b90ffae61a285065f0253e9474adfc143288e0f..e2edd88c3d4820f9587eaf3b7f6b8d2660da0d14 100644
--- a/docs/cli/cozy-stack_konnectors_update.md
+++ b/docs/cli/cozy-stack_konnectors_update.md
@@ -20,7 +20,7 @@ cozy-stack konnectors update <slug> [sourceurl] [flags]
       --admin-port int      administration server port (default 6060)
       --all-domains         work on all domains iteratively
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
       --parameters string   override the parameters of the installed konnector
   -p, --port int            server port (default 8080)
diff --git a/docs/cli/cozy-stack_settings.md b/docs/cli/cozy-stack_settings.md
index cb8d229e0a185efbac149025d312b743d34935fa..a78701188a400fe453e9078f162be1ae63878127 100644
--- a/docs/cli/cozy-stack_settings.md
+++ b/docs/cli/cozy-stack_settings.md
@@ -19,13 +19,13 @@ cozy-stack settings [settings] [flags]
 ### Examples
 
 ```
-$ cozy-stack settings --domain cozy.tools:8080 context:beta,public_name:John,to_remove:
+$ cozy-stack settings --domain cozy.localhost:8080 context:beta,public_name:John,to_remove:
 ```
 
 ### Options
 
 ```
-      --domain string   specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string   specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help            help for settings
 ```
 
diff --git a/docs/cli/cozy-stack_triggers.md b/docs/cli/cozy-stack_triggers.md
index 04c4e24fc6aadff0a9d7389add6df40bd40dbc17..b48c26395b1bd7ec06e5daba19a97abc217cf45e 100644
--- a/docs/cli/cozy-stack_triggers.md
+++ b/docs/cli/cozy-stack_triggers.md
@@ -17,7 +17,7 @@ cozy-stack triggers <command> [flags]
 ### Options
 
 ```
-      --domain string   specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string   specify the domain name of the instance (default "cozy.localhost:8080")
   -h, --help            help for triggers
 ```
 
diff --git a/docs/cli/cozy-stack_triggers_launch.md b/docs/cli/cozy-stack_triggers_launch.md
index c5302070a23b758c012e1ca33aed69d4c5b4735b..8b4a95b83eba24c3ccf9be8437623c7b65433ef3 100644
--- a/docs/cli/cozy-stack_triggers_launch.md
+++ b/docs/cli/cozy-stack_triggers_launch.md
@@ -9,7 +9,7 @@ cozy-stack triggers launch [triggerId] [flags]
 ### Examples
 
 ```
-$ cozy-stack triggers launch --domain cozy.tools:8080 748f42b65aca8c99ec2492eb660d1891
+$ cozy-stack triggers launch --domain cozy.localhost:8080 748f42b65aca8c99ec2492eb660d1891
 ```
 
 ### Options
@@ -24,7 +24,7 @@ $ cozy-stack triggers launch --domain cozy.tools:8080 748f42b65aca8c99ec2492eb66
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_triggers_ls.md b/docs/cli/cozy-stack_triggers_ls.md
index 27e680d6673687ae1da9b10bc7acdc39afcc730f..657ba0ca33d70ef178d4424a7bdb5ee7ae487a1f 100644
--- a/docs/cli/cozy-stack_triggers_ls.md
+++ b/docs/cli/cozy-stack_triggers_ls.md
@@ -9,7 +9,7 @@ cozy-stack triggers ls [flags]
 ### Examples
 
 ```
-$ cozy-stack triggers ls --domain cozy.tools:8080
+$ cozy-stack triggers ls --domain cozy.localhost:8080
 ```
 
 ### Options
@@ -24,7 +24,7 @@ $ cozy-stack triggers ls --domain cozy.tools:8080
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/cli/cozy-stack_triggers_show-from-app.md b/docs/cli/cozy-stack_triggers_show-from-app.md
index 90100840fd429ecb52a3a321e7b1293828ff6b69..15176555423ab0510bb3d9433fa23005740760e3 100644
--- a/docs/cli/cozy-stack_triggers_show-from-app.md
+++ b/docs/cli/cozy-stack_triggers_show-from-app.md
@@ -18,7 +18,7 @@ cozy-stack triggers show-from-app <slug> [flags]
       --admin-host string   administration server host (default "localhost")
       --admin-port int      administration server port (default 6060)
   -c, --config string       configuration file (default "$HOME/.cozy.yaml")
-      --domain string       specify the domain name of the instance (default "cozy.tools:8080")
+      --domain string       specify the domain name of the instance (default "cozy.localhost:8080")
       --host string         server host (default "localhost")
   -p, --port int            server port (default 8080)
 ```
diff --git a/docs/client-app-dev.md b/docs/client-app-dev.md
index 39a1a6da8e9eca91b2cf420d3a134033b4938bc3..b939d8ed4ddb1d283940f9311c1128a9d380d1ea 100644
--- a/docs/client-app-dev.md
+++ b/docs/client-app-dev.md
@@ -12,8 +12,8 @@ have to install part of the dependencies yourself or _via_ a Docker image in
 which all dependencies are packed.
 
 This environment will provide a running instance a http server serving both a
-specified directory of your application on `app.cozy.tools:8080` and the
-`cozy-stack` on `cozy.tools:8080` (you can change the hostname and port if you
+specified directory of your application on `app.cozy.localhost:8080` and the
+`cozy-stack` on `cozy.localhost:8080` (you can change the hostname and port if you
 want, see below).
 
 The default passphrase will be "cozy"
@@ -61,7 +61,7 @@ docker pull cozy/cozy-app-dev
 
 If you work behind a corporate proxy, and Docker is configured to inject proxy
 configuration into the containers, you need to ensure that both `localhost` and
-`cozy.tools` are configured not to use the proxy. Following is the minimal
+`cozy.localhost` are configured not to use the proxy. Following is the minimal
 `~/.docker/config.json` configuration that has been shown to work:
 
 ```json
@@ -70,7 +70,7 @@ configuration into the containers, you need to ensure that both `localhost` and
         "default": {
             "httpProxy": "MY_CORPORATE_PROXY",
             "httpsProxy": "MY_CORPORATE_PROXY",
-            "noProxy": "localhost,cozy.tools"
+            "noProxy": "localhost,cozy.localhost"
         }
     }
 }
@@ -113,7 +113,7 @@ $ docker run --rm -it \
 
 A [MailHog](https://github.com/mailhog/MailHog) is running inside docker to
 catch emails. You can view the emails sent by the stack in a web interface on
-http://cozy.tools:8025/
+http://cozy.localhost:8025/
 
 You can also expose the couchdb port (listening in the container on 5984) in
 order to access its admin page. For instance add `-p 1234:5984` to access to the
diff --git a/docs/docker.md b/docs/docker.md
index 0b5f687255c7f78e00ab5be460255b7005275f03..040bf492ff3ba069660107dcc8d4eabc9bb0a889 100644
--- a/docs/docker.md
+++ b/docs/docker.md
@@ -53,7 +53,7 @@ A precision for the app name:
 docker run --rm -it -p 8080:8080 -v "$(pwd)/build":/data/cozy-app/***my-app*** cozy/cozy-app-dev
 ```
 
-***my-app*** will be the first part of: ***my-app***.cozy.tools:8080
+***my-app*** will be the first part of: ***my-app***.cozy.localhost:8080
 
 ## Only-Office document server
 
diff --git a/docs/jobs.md b/docs/jobs.md
index 7c6f3efff169965e5c24202cfe8a3c4a3b799920..18f1da6d58fff13a9e6053cbd2fd15d83513c02a 100644
--- a/docs/jobs.md
+++ b/docs/jobs.md
@@ -219,7 +219,7 @@ Example and description of the attributes of a `io.cozy.jobs`:
 
 ```js
 {
-  "domain": "me.cozy.tools",
+  "domain": "me.cozy.localhost",
   "worker": "sendmail",    // worker type name
   "options": {
     "priority": 3,         // priority from 1 to 100, higher number is higher priority
@@ -230,7 +230,7 @@ Example and description of the attributes of a `io.cozy.jobs`:
     "mode": "noreply",
     "template_name": "new_registration",
     "template_values": {
-      "DevicesLink": "http://me.cozy.tools/#/connectedDevices",
+      "DevicesLink": "http://me.cozy.localhost/#/connectedDevices",
     }
   },
   "state": "running",      // queued, running, done, errored
@@ -270,7 +270,7 @@ Accept: application/vnd.api+json
     "type": "io.cozy.jobs",
     "id": "123123",
     "attributes": {
-      "domain": "me.cozy.tools",
+      "domain": "me.cozy.localhost",
       "worker": "sendmail",
       "options": {
         "priority": 3,
@@ -328,7 +328,7 @@ Accept: application/vnd.api+json
     "type": "io.cozy.jobs",
     "id": "123123",
     "attributes": {
-      "domain": "me.cozy.tools",
+      "domain": "me.cozy.localhost",
       "worker": "sendmail",
       "options": {
         "timeout": 60,
@@ -420,7 +420,7 @@ Accept: application/vnd.api+json
   "data": [
     {
       "attributes": {
-        "domain": "cozy.tools:8080",
+        "domain": "cozy.localhost:8080",
         "options": null,
         "queued_at": "2017-09-29T15:32:31.953878568+02:00",
         "started_at": "0001-01-01T00:00:00Z",
@@ -501,7 +501,7 @@ Content-Type: application/vnd.api+json
     "type": "io.cozy.jobs",
     "id": "022368c07dc701396403543d7eb8149c",
     "attributes": {
-      "domain": "me.cozy.tools",
+      "domain": "me.cozy.localhost",
       "worker": "sendmail",
       "options": {},
       "state": "errored",
@@ -762,7 +762,7 @@ Accept: application/vnd.api+json
     "type": "io.cozy.jobs",
     "id": "123123",
     "attributes": {
-      "domain": "me.cozy.tools",
+      "domain": "me.cozy.localhost",
       "worker": "sendmail",
       "options": {},
       "state": "running",
diff --git a/docs/move.md b/docs/move.md
index d35d4968aa01983189382402598412365150580d..6bd349a846a8ff2034d192dc1427bb7acd02aa5a 100644
--- a/docs/move.md
+++ b/docs/move.md
@@ -31,7 +31,7 @@ Exports options fields are:
 
 ```http
 POST /move/exports HTTP/1.1
-Host: source.cozy.tools
+Host: source.cozy.localhost
 Authorization: Bearer ...
 Content-Type: application/vnd.api+json
 ```
@@ -71,7 +71,7 @@ Exports fields are:
 
 ```http
 GET /move/exports/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1
-Host: source.cozy.tools
+Host: source.cozy.localhost
 Authorization: Bearer ...
 Content-Type: application/vnd.api+json
 ```
@@ -121,7 +121,7 @@ URL, before doing the real import.
 
 ```http
 POST /move/imports/precheck HTTP/1.1
-Host: destination.cozy.tools
+Host: destination.cozy.localhost
 Authorization: Bearer ...
 Content-Type: application/vnd.api+json
 ```
@@ -130,7 +130,7 @@ Content-Type: application/vnd.api+json
 {
     "data": {
         "attributes": {
-            "url": "https://settings.source.cozy.tools/#/exports/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
+            "url": "https://settings.source.cozy.localhost/#/exports/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
         }
     }
 }
@@ -150,7 +150,7 @@ This endpoint can be used to really start an import.
 
 ```http
 POST /move/imports HTTP/1.1
-Host: destination.cozy.tools
+Host: destination.cozy.localhost
 Authorization: Bearer ...
 Content-Type: application/vnd.api+json
 ```
@@ -159,7 +159,7 @@ Content-Type: application/vnd.api+json
 {
     "data": {
         "attributes": {
-            "url": "https://settings.source.cozy.tools/#/exports/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
+            "url": "https://settings.source.cozy.localhost/#/exports/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
         }
     }
 }
@@ -169,7 +169,7 @@ Content-Type: application/vnd.api+json
 
 ```http
 HTTP/1.1 303 See Other
-Location: https://destination.cozy.tools/move/importing
+Location: https://destination.cozy.localhost/move/importing
 ```
 
 ### POST /move/importing
@@ -188,7 +188,7 @@ This is a websocket endpoint that can be used to wait for the end of the
 import. The server will send an event when it is done (or errored):
 
 ```
-server> {"redirect": "http://cozy.tools:8080/auth/login"}
+server> {"redirect": "http://cozy.localhost:8080/auth/login"}
 ```
 
 ### GET /move/authorize
@@ -201,7 +201,7 @@ still need a confirmation by mail to start moving the Cozy.
 
 ```http
 GET /move/authorize?state=8d560d60&redirect_uri=https://move.cozycloud.cc/callback/source HTTP/1.1
-Server: source.cozy.tools
+Server: source.cozy.localhost
 ```
 
 #### Response
@@ -219,14 +219,14 @@ This endpoint is used by the settings application to open the move wizard.
 
 ```http
 POST /move/initialize HTTP/1.1
-Host: source.cozy.tools
+Host: source.cozy.localhost
 ```
 
 #### Response
 
 ```http
 HTTP/1.1 307 Temporary Redirect
-Location: https://move.cozycloud.cc/initialize?code=834d7eb8149c&cozy_url=https://source.cozy.tools&used=123456&quota=5000000&client_id=09136b00-1778-0139-f0a7-543d7eb8149c&client_secret=NDkyZTEzMDA&vault=false
+Location: https://move.cozycloud.cc/initialize?code=834d7eb8149c&cozy_url=https://source.cozy.localhost&used=123456&quota=5000000&client_id=09136b00-1778-0139-f0a7-543d7eb8149c&client_secret=NDkyZTEzMDA&vault=false
 ```
 
 ### POST /move/request
@@ -241,7 +241,7 @@ POST /move/request HTTP/1.1
 Content-Type: application/x-www-form-urlencoded
 
 code=834d7eb8149c
-&target_url=https://target.cozy.tools/
+&target_url=https://target.cozy.localhost/
 &target_token=M2EwYjlhZjAtMTc3OC0wMTM5LWYwYWMtNTQzZDdlYjgxNDlj
 &target_client_id=09136b00-1778-0139-f0a7-543d7eb8149c
 &target_client_secret=NDkyZTEzMDA
@@ -267,14 +267,14 @@ its-self during the move and pushs a job for the export.
 
 ```http
 GET /move/go?secret=tNTQzZDdlYjgxNDlj HTTP/1.1
-Host: source.cozy.tools
+Host: source.cozy.localhost
 ```
 
 #### Reponse
 
 ```http
 HTTP/1.1 303 See Other
-Location: https://target.cozy.tools/move/importing
+Location: https://target.cozy.localhost/move/importing
 ```
 
 ### POST /move/finalize
@@ -286,7 +286,7 @@ the source Cozy so that it can stop the konnectors and unblock the instance.
 
 ```http
 POST /move/finalize?subdomain=flat HTTP/1.1
-Host: source.cozy.tools
+Host: source.cozy.localhost
 ```
 #### Reponse
 
@@ -303,7 +303,7 @@ endpoint for the other instance to unblock it.
 
 ```http
 POST /move/abort HTTP/1.1
-Host: source.cozy.tools
+Host: source.cozy.localhost
 ```
 #### Reponse
 
diff --git a/docs/notifications.md b/docs/notifications.md
index d57d7e2fea4d2629b7f5ada559fed1e42820c6bd..566cc0970d399af799f1723596b9877d359acc4c 100644
--- a/docs/notifications.md
+++ b/docs/notifications.md
@@ -125,7 +125,7 @@ of the message cannot be longer than 160 characters.
 
 ```http
 POST /notifications HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 Authorization: Bearer ...
 Content-Type: application/vnd.api+json
 ```
diff --git a/docs/permissions.md b/docs/permissions.md
index c077aa18d3bc42e744a6a231c700e8c1122e9921..0f8e47dc5431637849ce9d5162b14c338ce25164 100644
--- a/docs/permissions.md
+++ b/docs/permissions.md
@@ -264,7 +264,7 @@ included in the response, like this:
 			"attributes": {
 				"status": "seen",
 				"name": "Bob",
-				"email": "bob@cozy.tools"
+				"email": "bob@cozy.localhost"
 			}
 		}
 	]
diff --git a/docs/remote.md b/docs/remote.md
index 32067db2d955b26518f0d666d39a276b5b8bd72c..1bc1b59984e7b72fbb245b86be570fdd47189e8b 100644
--- a/docs/remote.md
+++ b/docs/remote.md
@@ -124,7 +124,7 @@ Example:
 
 ```http
 GET /remote/org.wikidata.search?q=Douglas+Adams HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 ```
 
 It is possible to send some extra informations, to make it easier to understand
@@ -135,7 +135,7 @@ Example:
 
 ```http
 POST /remote/org.example HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 Content-Type: application/json
 ```
 
@@ -160,7 +160,7 @@ Example:
 
 ```http
 GET /remote/assets/bank HTTP/1.1
-Host: alice.cozy.tools
+Host: alice.cozy.localhost
 ```
 
 ## Logs
diff --git a/docs/settings.md b/docs/settings.md
index 61f0cbbb2dcf9d8dc42f69ef9733dfe6fb082272..c5f9da1dd0cd4b8c6ea9779c1056347eb951c821 100644
--- a/docs/settings.md
+++ b/docs/settings.md
@@ -419,7 +419,7 @@ this modal again the next time they will open the Home again).
 
 ```http
 DELETE /settings/instance/moved_from HTTP/1.1
-Host: target.cozy.tools
+Host: target.cozy.localhost
 Cookie: sessionid=xxxxx
 ```
 
diff --git a/docs/workers.md b/docs/workers.md
index 90a796bb6b21a4f525eb74d215e8662382d755b6..d2be8f032e81b758c21c8473e66cc9bc92456103 100644
--- a/docs/workers.md
+++ b/docs/workers.md
@@ -263,7 +263,7 @@ Its options are:
 
 ```json
 {
-  "manifest_url": "http://cozy.tools:8080/move/exports/QUFBQUFGLVg5b3c0WTJNNU9HRmpPR0V4WlRnd01XVTJZMlU0T0RjeE5UaGpNVEF3TWpKbVplblFfRWZWUVAtRGJXU0lnV2tIZ3NsVHN5dUR6V0ZIdVdSeERLb196X3A0"
+  "manifest_url": "http://cozy.localhost:8080/move/exports/QUFBQUFGLVg5b3c0WTJNNU9HRmpPR0V4WlRnd01XVTJZMlU0T0RjeE5UaGpNVEF3TWpKbVplblFfRWZWUVAtRGJXU0lnV2tIZ3NsVHN5dUR6V0ZIdVdSeERLb196X3A0"
 }
 ```
 
diff --git a/model/job/mem_broker_test.go b/model/job/mem_broker_test.go
index d7ddcdfc08e6ed1285d823105ecb9c5e981334e2..e72f67d854fa46cf2761a8e6741311665281fcde 100644
--- a/model/job/mem_broker_test.go
+++ b/model/job/mem_broker_test.go
@@ -15,7 +15,7 @@ import (
 )
 
 func TestProperSerial(t *testing.T) {
-	job := jobs.NewJob(prefixer.NewPrefixer("cozy.tools:8080", "cozy.tools:8080"),
+	job := jobs.NewJob(prefixer.NewPrefixer("cozy.localhost:8080", "cozy.localhost:8080"),
 		&jobs.JobRequest{
 			WorkerType: "",
 		})
diff --git a/model/vfs/cozy_metadata_test.go b/model/vfs/cozy_metadata_test.go
index 66c7cdefaac2521df885bc96b4a928222c4b89a1..a0353ad89816402cd26b05c5a54562a00ec11fad 100644
--- a/model/vfs/cozy_metadata_test.go
+++ b/model/vfs/cozy_metadata_test.go
@@ -9,65 +9,65 @@ import (
 )
 
 func TestUpdatedByApp(t *testing.T) {
-	fcm := NewCozyMetadata("alice.cozy.tools")
+	fcm := NewCozyMetadata("alice.cozy.localhost")
 	entry := &metadata.UpdatedByAppEntry{
 		Slug:     "drive",
 		Date:     time.Now(),
-		Instance: "alice.cozy.tools",
+		Instance: "alice.cozy.localhost",
 	}
 	fcm.UpdatedByApp(entry)
 	assert.Len(t, fcm.UpdatedByApps, 1)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[0].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[0].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[0].Instance)
 
 	entry = &metadata.UpdatedByAppEntry{
 		Slug:     "photo",
 		Date:     time.Now(),
-		Instance: "alice.cozy.tools",
+		Instance: "alice.cozy.localhost",
 	}
 	fcm.UpdatedByApp(entry)
 	assert.Len(t, fcm.UpdatedByApps, 2)
 	assert.Equal(t, "photo", fcm.UpdatedByApps[1].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[1].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[1].Instance)
 
 	entry = &metadata.UpdatedByAppEntry{
 		Slug:     "drive",
 		Date:     time.Now(),
-		Instance: "bob.cozy.tools",
+		Instance: "bob.cozy.localhost",
 	}
 	fcm.UpdatedByApp(entry)
 	assert.Len(t, fcm.UpdatedByApps, 3)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[2].Slug)
-	assert.Equal(t, "bob.cozy.tools", fcm.UpdatedByApps[2].Instance)
+	assert.Equal(t, "bob.cozy.localhost", fcm.UpdatedByApps[2].Instance)
 
 	entry = &metadata.UpdatedByAppEntry{
 		Slug:     "drive",
 		Date:     time.Now(),
-		Instance: "alice.cozy.tools",
+		Instance: "alice.cozy.localhost",
 	}
 	fcm.UpdatedByApp(entry)
 	assert.Len(t, fcm.UpdatedByApps, 3)
 	assert.Equal(t, "photo", fcm.UpdatedByApps[0].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[0].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[0].Instance)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[1].Slug)
-	assert.Equal(t, "bob.cozy.tools", fcm.UpdatedByApps[1].Instance)
+	assert.Equal(t, "bob.cozy.localhost", fcm.UpdatedByApps[1].Instance)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[2].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[2].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[2].Instance)
 	assert.Equal(t, entry.Date, fcm.UpdatedByApps[2].Date)
 
 	entry = &metadata.UpdatedByAppEntry{
 		Slug:     "drive",
 		Date:     time.Now(),
-		Instance: "alice.cozy.tools",
+		Instance: "alice.cozy.localhost",
 	}
 	fcm.UpdatedByApp(entry)
 	assert.Len(t, fcm.UpdatedByApps, 3)
 	assert.Equal(t, "photo", fcm.UpdatedByApps[0].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[0].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[0].Instance)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[1].Slug)
-	assert.Equal(t, "bob.cozy.tools", fcm.UpdatedByApps[1].Instance)
+	assert.Equal(t, "bob.cozy.localhost", fcm.UpdatedByApps[1].Instance)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[2].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[2].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[2].Instance)
 	assert.Equal(t, entry.Date, fcm.UpdatedByApps[2].Date)
 
 	one := *entry
@@ -77,15 +77,15 @@ func TestUpdatedByApp(t *testing.T) {
 	entry = &metadata.UpdatedByAppEntry{
 		Slug:     "photo",
 		Date:     time.Now(),
-		Instance: "alice.cozy.tools",
+		Instance: "alice.cozy.localhost",
 	}
 	fcm.UpdatedByApp(entry)
 	assert.Len(t, fcm.UpdatedByApps, 3)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[0].Slug)
-	assert.Equal(t, "bob.cozy.tools", fcm.UpdatedByApps[0].Instance)
+	assert.Equal(t, "bob.cozy.localhost", fcm.UpdatedByApps[0].Instance)
 	assert.Equal(t, "drive", fcm.UpdatedByApps[1].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[1].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[1].Instance)
 	assert.Equal(t, "photo", fcm.UpdatedByApps[2].Slug)
-	assert.Equal(t, "alice.cozy.tools", fcm.UpdatedByApps[2].Instance)
+	assert.Equal(t, "alice.cozy.localhost", fcm.UpdatedByApps[2].Instance)
 	assert.Equal(t, entry.Date, fcm.UpdatedByApps[2].Date)
 }
diff --git a/model/vfs/metadata_test.go b/model/vfs/metadata_test.go
index a10ef656c0ab8554ce2d7d93aab08a3daa473a90..04e37bd2ed77e9ba89ae0fb49bec68e8f46a6a45 100644
--- a/model/vfs/metadata_test.go
+++ b/model/vfs/metadata_test.go
@@ -65,7 +65,7 @@ func TestShortcutMetadataExtractor(t *testing.T) {
 	doc := &FileDoc{
 		Mime: consts.ShortcutMimeType,
 		CozyMetadata: &FilesCozyMetadata{
-			CreatedOn: "http://cozy.tools:8080/",
+			CreatedOn: "http://cozy.localhost:8080/",
 		},
 	}
 	extractor := NewMetaExtractor(doc)
@@ -86,7 +86,7 @@ func TestShortcutMetadataExtractor(t *testing.T) {
 	assert.True(t, ok, "target.cozyMetadata is present")
 	cozy, ok := cm["instance"].(string)
 	assert.True(t, ok, "target.cozyMetadata.instance is present")
-	assert.Equal(t, "cozy.tools:8080", cozy)
+	assert.Equal(t, "cozy.localhost:8080", cozy)
 	app, ok := target["app"]
 	assert.True(t, ok, "target.app is present")
 	assert.Equal(t, "drive", app)
diff --git a/pkg/config/config/split_host.go b/pkg/config/config/split_host.go
index 731169e4cedc7991fa3c8ed9c49576d4b9e546f4..682538487e7141da8f5182b668b398d06463bf16 100644
--- a/pkg/config/config/split_host.go
+++ b/pkg/config/config/split_host.go
@@ -8,9 +8,6 @@ func SplitCozyHost(host string) (instanceHost, appSlug, siblings string) {
 	parts := strings.SplitN(host, ".", 2)
 	if len(parts) == 2 {
 		if GetConfig().Subdomains == NestedSubdomains {
-			if host == "cozy.tools:8080" {
-				return host, "", ""
-			}
 			return parts[1], parts[0], "*." + parts[1]
 		}
 		subs := strings.SplitN(parts[0], "-", 2)
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 50e071f55970379230a0954c68f526a48861b00e..95357ea0050d9ab354f925dd95f2fbe81a50a7f8 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -29,7 +29,7 @@ RUN ./scripts/build.sh dev
 FROM debian:stretch-slim
 
 # cozy-stack
-ENV COZY_STACK_HOST=cozy.tools \
+ENV COZY_STACK_HOST=cozy.localhost \
 	COZY_STACK_PORT=8080 \
 	COZY_STACK_PATH=cozy-stack \
 	COUCHDB_SRC_URL=https://dist.apache.org/repos/dist/release/couchdb/source/2.3.1/apache-couchdb-2.3.1.tar.gz \
diff --git a/scripts/cozy-app-dev.sh b/scripts/cozy-app-dev.sh
index 5dc70e28494f8363fc6cbee5c66004913f114034..85e59129ff8c4d8d7beae98ca7451b472f223e91 100755
--- a/scripts/cozy-app-dev.sh
+++ b/scripts/cozy-app-dev.sh
@@ -3,7 +3,7 @@
 set -e
 set -m
 
-[ -z "${COZY_STACK_HOST}" ] && COZY_STACK_HOST="cozy.tools"
+[ -z "${COZY_STACK_HOST}" ] && COZY_STACK_HOST="cozy.localhost"
 [ -z "${COZY_STACK_PORT}" ] && COZY_STACK_PORT="8080"
 [ -z "${COZY_STACK_PASS}" ] && COZY_STACK_PASS="cozy"
 [ -z "${COZY_STACK_ADMIN_PORT}" ] && COZY_STACK_ADMIN_PORT="6060"
@@ -35,7 +35,7 @@ usage() {
 	echo -e "    itself. default: \"\$GOPATH/bin\"."
 	echo -e "\n  COZY_STACK_HOST"
 	echo -e "    specify the hostname on which the cozy-stack is launched."
-	echo -e "    default: cozy.tools."
+	echo -e "    default: cozy.localhost."
 	echo -e "\n  COZY_STACK_PORT"
 	echo -e "    specify the port on which the cozy-stack is listening."
 	echo -e "    default: 8080."
diff --git a/scripts/integration-test.sh b/scripts/integration-test.sh
index beb827be7d7d0b907b4758948d4d3dd1163e4854..6d86b7a7dbdcbdf389371c47d5a8ae8ae6336d67 100755
--- a/scripts/integration-test.sh
+++ b/scripts/integration-test.sh
@@ -14,7 +14,7 @@ sudo npm install -g @bitwarden/cli
 # force the resolution via the /etc/hosts to 127.0.0.1.
 #
 # See https://github.com/eventmachine/eventmachine/blob/v1.2.7/lib/em/resolver.rb
-echo "127.0.0.1 alice.test.cozy.tools bob.test.cozy.tools" | sudo tee -a /etc/hosts
+echo "127.0.0.1 alice.test.localhost bob.test.localhost" | sudo tee -a /etc/hosts
 
 bundle install --jobs=3 --retry=3
 # bundle exec ruby -e 'Dir.glob("tests/*.rb") { |f| load f }'
diff --git a/scripts/lnav_cozy_log.json b/scripts/lnav_cozy_log.json
index d5154faa78dc4262c8b1d4e46a6d446355a86549..f2674460a4981470a5855048646ecc257280340d 100644
--- a/scripts/lnav_cozy_log.json
+++ b/scripts/lnav_cozy_log.json
@@ -21,7 +21,7 @@
       },
       {
         "line":
-          "time=\"2018-04-18T14:26:23+02:00\" level=debug msg=\"request: GET alice-test-cozy-tools-8081%2Fio-cozy-shared/_local/sharing-be7813ea5927dc06a5b044ca47010ffe-1 \" domain=\"alice.test.cozy.tools:8081\""
+          "time=\"2018-04-18T14:26:23+02:00\" level=debug msg=\"request: GET alice-test-cozy.localhost-8081%2Fio-cozy-shared/_local/sharing-be7813ea5927dc06a5b044ca47010ffe-1 \" domain=\"alice.test.cozy.localhost:8081\""
       }
     ],
     "value": {
diff --git a/tests/fixtures/shortcut.url b/tests/fixtures/shortcut.url
index 9e8cf960d94a982ebb25f10178e737a3f077868c..2407681dca7b4b40b4e652b4558fae320abed21a 100644
--- a/tests/fixtures/shortcut.url
+++ b/tests/fixtures/shortcut.url
@@ -1,2 +1,2 @@
 [InternetShortcut]
-URL=http://drive.cozy.tools:8080/
+URL=http://drive.cozy.localhost:8080/
diff --git a/tests/integration/lib/instance.rb b/tests/integration/lib/instance.rb
index cd2b93d9a82b9b40992d58050e31755f53575b6a..287895dea2ced3b39082fbb40c5d72f341a4289e 100644
--- a/tests/integration/lib/instance.rb
+++ b/tests/integration/lib/instance.rb
@@ -12,9 +12,9 @@ class Instance
   def initialize(stack, opts = {})
     @stack = stack
     @name = opts[:name] || Faker::Internet.domain_word
-    @domain = opts[:domain] || "#{@name.downcase}.test.cozy.tools:#{stack.port}"
+    @domain = opts[:domain] || "#{@name.downcase}.test.localhost:#{stack.port}"
     @passphrase = opts[:passphrase] || "cozy"
-    @email = opts[:email] || "#{@name.downcase}+test@cozy.tools"
+    @email = opts[:email] || "#{@name.downcase}+test@localhost"
     @locale = opts[:locale] || "fr"
   end
 
diff --git a/tests/integration/scalability/trash.rb b/tests/integration/scalability/trash.rb
index 2619823b00713c5c72a26e85a928b4b546545a45..672a2abdf0f9ce17ca042cc41ca7c48012d7bb89 100644
--- a/tests/integration/scalability/trash.rb
+++ b/tests/integration/scalability/trash.rb
@@ -1,8 +1,8 @@
 require_relative '../boot'
 
 stack_port = 8080
-domain = 'trash.test.cozy.tools:8080'
-email = 'me@cozy.tools'
+domain = 'trash.test.localhost:8080'
+email = 'me@localhost'
 
 stack = Stack.get stack_port
 inst = Instance.new stack, domain: domain, email: email
diff --git a/tests/integration/tests/revoke_sharing.rb b/tests/integration/tests/revoke_sharing.rb
index f0d09ff0adb60f76f7c2bb6d3209a587ad10eee0..2bb56bc163f6342a8823628f14285eca64e3a363 100644
--- a/tests/integration/tests/revoke_sharing.rb
+++ b/tests/integration/tests/revoke_sharing.rb
@@ -84,7 +84,7 @@ describe "A sharing" do
     contact_charlie = Contact.create inst_alice, given_name: charlie
     Contact.create inst_bob, given_name: "Alice",
                              family_name: lastname,
-                             email: "alice+test@cozy.tools"
+                             email: "alice+test@localhost"
     Contact.create inst_bob, given_name: "Charlie",
                              family_name: lastname,
                              email: contact_charlie.primary_email
@@ -111,7 +111,7 @@ describe "A sharing" do
     owner = doc["members"].first
     assert_equal "owner", owner["status"]
     assert_equal "Alice", owner["public_name"]
-    assert_equal "alice+test@cozy.tools", owner["email"]
+    assert_equal "alice+test@localhost", owner["email"]
     assert_equal inst_alice.url, owner["instance"]
     recpt1 = doc["members"][1]
     assert_equal "pending", recpt1["status"]
@@ -218,7 +218,7 @@ describe "A sharing" do
     assert_equal "owner", owner["status"]
     assert_equal "Alice", owner["public_name"]
     assert_equal "Alice #{lastname}", owner["name"]
-    assert_equal "alice+test@cozy.tools", owner["email"]
+    assert_equal "alice+test@localhost", owner["email"]
     assert_equal inst_alice.url, owner["instance"]
     recpt1 = doc["members"][1]
     assert_equal "ready", recpt1["status"]
@@ -273,7 +273,7 @@ describe "A sharing" do
     owner = doc["members"].first
     assert_equal "owner", owner["status"]
     assert_equal "Alice", owner["public_name"]
-    assert_equal "alice+test@cozy.tools", owner["email"]
+    assert_equal "alice+test@localhost", owner["email"]
     assert_equal inst_alice.url, owner["instance"]
     assert_nil owner["name"]
     recpt1 = doc["members"][1]
diff --git a/web/accounts/oauth_test.go b/web/accounts/oauth_test.go
index 75626ca7ffc94cc9671b65f17d2a4f988c93ee71..f865c4c5c5419e1f2f1fd7b2f3e61cd52b8483a6 100644
--- a/web/accounts/oauth_test.go
+++ b/web/accounts/oauth_test.go
@@ -151,7 +151,7 @@ func TestRedirectURLOauthFlow(t *testing.T) {
 }
 
 func TestFixedRedirectURIOauthFlow(t *testing.T) {
-	redirectURI := "http://_oauth_callback.cozy.tools/accounts/test-service3/redirect"
+	redirectURI := "http://_oauth_callback.cozy.localhost/accounts/test-service3/redirect"
 	service := makeTestACService(redirectURI)
 	defer service.Close()
 
@@ -238,7 +238,7 @@ func TestMain(m *testing.M) {
 	setup = testutils.NewSetup(m, "oauth-konnectors")
 	ts = setup.GetTestServer("/accounts", Routes)
 	testInstance = setup.GetTestInstance(&lifecycle.Options{
-		Domain: strings.Replace(ts.URL, "http://127.0.0.1", "cozy.tools", 1),
+		Domain: strings.Replace(ts.URL, "http://127.0.0.1", "cozy.localhost", 1),
 	})
 	_ = couchdb.ResetDB(couchdb.GlobalSecretsDB, consts.AccountTypes)
 	setup.AddCleanup(func() error {
diff --git a/web/bitwarden/bitwarden_test.go b/web/bitwarden/bitwarden_test.go
index 93f6a7ea86088a3a3e43234f6c64402eb0ff1d2a..bb77ec570d72950e3b3693e2daeeb305aa6f4626 100644
--- a/web/bitwarden/bitwarden_test.go
+++ b/web/bitwarden/bitwarden_test.go
@@ -927,7 +927,7 @@ func TestMain(m *testing.M) {
 		Domain:     "bitwarden.example.net",
 		Passphrase: "cozy",
 		PublicName: "Pierre",
-		Email:      "pierre@cozy.tools",
+		Email:      "pierre@cozy.localhost",
 	})
 
 	ts = setup.GetTestServer("/bitwarden", Routes)
diff --git a/web/files/files_test.go b/web/files/files_test.go
index 7105dc4d94111fc6a558662ba508595304d26d96..b2c2683a4f615e9da3f2bbe6dbf5f9fbd2646285 100644
--- a/web/files/files_test.go
+++ b/web/files/files_test.go
@@ -475,7 +475,7 @@ func TestUploadShortcut(t *testing.T) {
 	req, err := http.NewRequest("POST", ts.URL+"/files/?Type=file&Name=shortcut.url", f)
 	assert.NoError(t, err)
 	req.Header.Add(echo.HeaderAuthorization, "Bearer "+token)
-	res, obj := doUploadOrMod(t, req, "application/octet-stream", "Zmko77UB8tJqERoef4MMlg==")
+	res, obj := doUploadOrMod(t, req, "application/octet-stream", "+tHtr9V8+4gcCDxTFAqt3w==")
 	assert.Equal(t, 201, res.StatusCode)
 	data := obj["data"].(map[string]interface{})
 	attrs := data["attributes"].(map[string]interface{})
diff --git a/web/oidc/oidc.go b/web/oidc/oidc.go
index 2e49a8e282a386ef70e7cbc2aa8d1df8dc132d3f..353b0dbd8ec571255f629f9f0cff72802198e3e1 100644
--- a/web/oidc/oidc.go
+++ b/web/oidc/oidc.go
@@ -43,7 +43,7 @@ func Start(c echo.Context) error {
 
 // Redirect is the route after the Identity Provider has redirected the user to
 // the stack. The redirection is made to a generic domain, like
-// oauthcallback.cozy.tools and the association with an instance is made via a
+// oauthcallback.cozy.localhost and the association with an instance is made via a
 // call to the UserInfo endpoint. It redirects to the cozy instance to login
 // the user.
 func Redirect(c echo.Context) error {
diff --git a/web/settings/context.go b/web/settings/context.go
index 74b2f7082664e43016f382fb928a00fda604aa68..1b72a0f3084acc1bcea9dc07437779771e918bf2 100644
--- a/web/settings/context.go
+++ b/web/settings/context.go
@@ -85,7 +85,7 @@ func finishOnboarding(c echo.Context, redirection string, acceptHTML bool) error
 		// Create and adding a fallbackURI in case of no-supporting custom
 		// protocol cozy<app>://
 		// Basically, it parses the app slug and computes the web app url
-		// Example: cozydrive:// => http://drive.alice.cozy.tools:8080/
+		// Example: cozydrive:// => http://drive.alice.cozy.localhost:8080/
 		r, err := url.Parse(redirectURI)
 		if err != nil {
 			return err