HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/dev/nowruzgan/rest/config/env/production.js
module.exports = {

  datastores: {
    mysql: {
      adapter: 'sails-mysql',
      host: 'localhost',
      user: 'nowruzgan',
      password: 'a74YPN5ECqqPqfaC',
      database: 'nowruzgan'
    },
  },

  models: {
    migrate: 'safe',
  },

  blueprints: {
    shortcuts: false,
  },

  security: {
    cors: {
      allowOrigins: [
        'https://nowruzgan.com',
        'https://vazhgar.com',
      ]
    },
  },

  session: {
    cookie: {
      maxAge: 24 * 60 * 60 * 1000,  // 24 hours
    },
  },

  sockets: {
    onlyAllowOrigins: [
      'https://nowruzgan.com',
      'https://vazhgar.com',
    ],
  },

  log: {
    level: 'debug'
  },

  http: {
    cache: 365.25 * 24 * 60 * 60 * 1000, // One year
  },

  port: 1351,

  custom: {
    baseUrl: 'https://nowruzgan.com',
    internalEmailAddress: 'support@iranshahrpedia.com',
    profileCacheTTL: 600,

    auth0: {
      callback: 'https://nowruzgan.com/admin#token=__TOKEN__',
      logout: 'https://nowruzgan.com/admin',
    },

    id: {
      callback: 'https://nowruzgan.com/admin#token=__TOKEN__',
      logout: 'https://nowruzgan.com/admin',
    },

    repo: {
      path: '/space/image-server/repository/nw',
      temp: '/tmp',
      cantaloupe: {
        endpoint: 'http://127.0.0.1:8182',
        username: 'babak',
        password: 'alimardan2'
      }
    }
  },
};