From dd26d71e8562969bb3d64616ef83bcc9f18ffa79 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Wed, 21 Nov 2018 14:40:06 -0500 Subject: [PATCH] refactor(oauth): remove oauth internal server (#134) --- README.md | 11 ----------- _scripts/create_mysql.js | 13 ------------- mysql_servers.json | 11 ----------- 3 files changed, 35 deletions(-) diff --git a/README.md b/README.md index 07330d7..8a7210b 100644 --- a/README.md +++ b/README.md @@ -215,17 +215,6 @@ After the script you need to rebuild *firefox-ios*. ******* -### OAuth Console Developer Accounts - -> Skip this if you are not working on managing OAuth clients or working on the OAuth console. - -To use the [fxa-oauth-console](https://github.com/mozilla/fxa-oauth-console) to manage OAuth clients you need to run the fxa-oauth-server in MySQL mode -``` -./pm2 start mysql_servers.json -``` - -******* - ### Running with MailDev If you want to inspect emails, you can run fxa-local-dev with [MailDev](https://www.npmjs.com/package/maildev). diff --git a/_scripts/create_mysql.js b/_scripts/create_mysql.js index d038a42..50a604a 100755 --- a/_scripts/create_mysql.js +++ b/_scripts/create_mysql.js @@ -21,21 +21,8 @@ const authserverMysql = { "min_uptime": "2m" }; -const oauthserverInternal = { - "name": "oauth-server-internal PORT 9011", - "script": "bin/internal.js", - "cwd": "fxa-auth-server/fxa-oauth-server", - "env": { - "NODE_ENV": "dev", - "HOST_INTERNAL" : "0.0.0.0" - }, - "max_restarts": "1", - "min_uptime": "2m" -}; - newServers.push(mysqlServer); newServers.push(authserverMysql); -newServers.push(oauthserverInternal); servers.apps.forEach((app) => { if(app.script.indexOf('mem.js') !== -1) { diff --git a/mysql_servers.json b/mysql_servers.json index 9cdfcbf..8c6e1c1 100644 --- a/mysql_servers.json +++ b/mysql_servers.json @@ -16,17 +16,6 @@ "max_restarts": "2", "min_uptime": "2m" }, - { - "name": "oauth-server-internal PORT 9011", - "script": "bin/internal.js", - "cwd": "fxa-auth-server/fxa-oauth-server", - "env": { - "NODE_ENV": "dev", - "HOST_INTERNAL": "0.0.0.0" - }, - "max_restarts": "1", - "min_uptime": "2m" - }, { "name": "auth-server local mail helper", "script": "test/mail_helper.js",