docker-compose
or docker compose
plugin (Note go version's docker-compose ignore driver:none see https://github.com/docker/compose/issues/8578)docker-compose up -d
to replace changed containers.init.sh
will create all files in $DEST
(`pwd`/dest for default) folder for deployment. so make sure persistenpath should be relative to $DEST
if using relative pathDEST=somefolder ./init.sh
mysql_upgrade
)docker-compose
which support service_completed_successfully
of depends_on condition. see: https://github.com/compose-spec/compose-spec
mysql_upgrade
, like docker-compose exec mysqldb mysql_upgrade
.see mysql documention.if your about:config useOAuthForSyncToken
is true
. Please update syncserver docker image to latest.
To avoid set permission of public
folder (for storing profile image) in profile server. A one-shot root container is spawned to change public
folder permission then exit.
So docker rootless
mode is not supported.
if one day aws-sdk-js support endpoint url env / fxa-profile support new S3(cfg.endpoint) . just use minio/minio to replace local.
TODO:
webextensions.storage.sync.enabled:true
services.sync.extension-storage.skipPercentageChance = 0 // to never skip sync for ext-storage ref:https://bugzilla.mozilla.org/show_bug.cgi?id=1621806
services.sync.scheduler.activeInterval = 10
services.sync.scheduler.fxa.singleDeviceInterval = 10
services.sync.scheduler.idleInterval = 10
services.sync.scheduler.idleTime = 10
services.sync.scheduler.immediateInterval = 10
services.sync.syncInterval = 60
services.sync.syncThreshold = 10
More about:config https://github.com/mozilla/fxa/blob/main/packages/fxa-dev-launcher/profile.mjs
/_init/auth/oauthserver-prod.json
edit fenix' redirecturi and add scope
"scope": "https://identity.mozilla.com/tokens/session"
_init/content/contentserver-prod.json
oldsync
redirecturi oauth/success/a2270f727f45f648
Install newest version and open the app. Then go to
diff --git a/src/background.js b/src/background.js
index 85da9e2..0aa878e 100644
--- a/src/background.js
+++ b/src/background.js
@@ -1,8 +1,12 @@
-const KINTO_SERVER = 'https://testpilot.settings.services.mozilla.com/v1';
+var KINTO_SERVER = 'https://kinto.<your_server>/v1/';
+
+// const KINTO_SERVER = 'https://testpilot.settings.services.mozilla.com/v1';
// XXX: Read this from Kinto fxa-params
-const FXA_CLIENT_ID = 'a3dbd8c5a6fd93e2';
-const FXA_OAUTH_SERVER = 'https://oauth.accounts.firefox.com/v1';
-const FXA_PROFILE_SERVER = 'https://profile.accounts.firefox.com/v1';
+var FXA_CLIENT_ID = 'a3dbd8c5a6fd93e2';
+var FXA_OAUTH_SERVER = 'https://oauth.<your_server>/v1';
+var FXA_CONTENT_SERVER = 'https://www.<your_server>';
+var FXA_PROFILE_SERVER = 'https://profile.<your_server>/v1';
+
const FXA_SCOPES = ['profile', 'https://identity.mozilla.com/apps/notes'];
let isEditorReady = false;
let editorConnectedDeferred;
@@ -26,7 +30,10 @@ function fetchProfile(credentials) {
}
function authenticate() {
- const fxaKeysUtil = new fxaCryptoRelier.OAuthUtils();
+ const fxaKeysUtil = new fxaCryptoRelier.OAuthUtils({
+ oauthServer:FXA_OAUTH_SERVER,
+ contentServer:FXA_CONTENT_SERVER
+ });
chrome.runtime.sendMessage({
action: 'sync-opening'
});
native/app/utils/constants.js
export const KINTO_SERVER_URL = 'https://testpilot.settings.services.mozilla.com/v1';
export const FXA_PROFILE_SERVER = 'https://profile.accounts.firefox.com/v1';
export const FXA_CONTENT_SERVER = 'https://accounts.firefox.com';
export const FXA_OAUTH_SERVER = 'https://oauth.accounts.firefox.com/v1';
export const FXA_OAUTH_CLIENT_ID = '7f368c6886429f19';
native/android/app/src/main/java/com/notes/fxaclient/FxaClientModule.java
private static final String CLIENT_ID = "7f368c6886429f19";
private static final String CONFIG_URL = "https://accounts.firefox.com";
pairingChannelServerUri: "wss://channelserver.services.mozilla.com",
pairingClients: [ "3c49430b43dfba77", "a2270f727f45f648", "1b1a3e44c54fbb58" ],
pairing: {
clients: {
default: [
'3c49430b43dfba77', // Reference browser
'a2270f727f45f648', // Fenix
'1b1a3e44c54fbb58', // Firefox for iOS
],
doc:
'OAuth Client IDs that are allowed to pair. Remove all clients from this list to disable pairing.',
env: 'PAIRING_CLIENTS',
format: Array,
},
server_base_uri: {
default: 'wss://channelserver.services.mozilla.com`1',
doc: 'The url of the Pairing channel server.',
env: 'PAIRING_SERVER_BASE_URI',
},
},