poad 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/global/init.js CHANGED
@@ -12,7 +12,7 @@ module.exports = async (args) => {
12
12
  iss: 'poad',
13
13
  };
14
14
  const service = {
15
- role: 'service',
15
+ role: 'service_role',
16
16
  iss: 'poad',
17
17
  };
18
18
  const admin = {
package/global/install.js CHANGED
@@ -5,7 +5,6 @@ module.exports = async (args) => {
5
5
 
6
6
  const docker = new Docker();
7
7
  const imageName = 'poadio/engine:' + global.package.engine;
8
- const platform = 'linux/amd64';
9
8
 
10
9
  // Create a new progress bar
11
10
  const progressBar = new cliProgress.SingleBar(
@@ -15,7 +14,9 @@ module.exports = async (args) => {
15
14
 
16
15
  console.log(chalk.bold('\nInstalling poad environment...'));
17
16
 
18
- docker.pull(imageName, { platform }, (err, stream) => {
17
+ // Sans plateforme imposée, Docker tire la variante de la machine (amd64 ou
18
+ // arm64) : sur un Mac Apple Silicon, l'engine tourne sans émulation.
19
+ docker.pull(imageName, (err, stream) => {
19
20
  if (err) {
20
21
  console.error('Error pulling image:', err);
21
22
  return;
package/global/start.js CHANGED
@@ -26,6 +26,9 @@ module.exports = async (args) => {
26
26
  Tty: false,
27
27
  Env: [
28
28
  'OMNEEDIA_GATEWAY_URL=http://localhost:' + config.web.port,
29
+ // Projet local : le service auth accepte les redirections vers
30
+ // http://localhost:* (désactivé par défaut, hors du CLI)
31
+ 'OMNEEDIA_AUTH_ALLOW_LOCALHOST_REDIRECTS=true',
29
32
  'DATA_VOLUME_MOUNTPOINT=/data',
30
33
  'POSTGRES_PASSWORD=postgres',
31
34
  'ADMIN_API_KEY=' + config.auth.admin,
@@ -52,7 +55,6 @@ module.exports = async (args) => {
52
55
  Binds: [path.dirname(root) + '/data:/data'],
53
56
  AutoRemove: true,
54
57
  },
55
- Platform: 'linux/amd64',
56
58
  })
57
59
  .then((container) => {
58
60
  return container.start();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "poad",
3
- "version": "2.6.1",
4
- "engine": "0.6.1",
3
+ "version": "2.7.0",
4
+ "engine": "0.6.3",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "bin": {