question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

admin/login Failed to load resource: net::ERR_CONNECTION_REFUSED

See original GitHub issue

Hi, someone know how make it work?

I use: using JWT.IO for jwtSecretKey with this data:

db.tokens.insert({
  is_revoked: false,
  date_created: new Date(),
  expiration: 72,
  name: 'Owner',
  email: 'demo@domain.test',
  scopes: ['admin']  
});

And server.js with this data:

// config used by server side only
module.exports = {
  // used by Store (server side)
  apiBaseUrl: `http://localhost:3001/api/v1`,

  // used by Store (server and client side)
  ajaxBaseUrl: `http://localhost:3001/ajax`,

  // Access-Control-Allow-Origin
  storeBaseUrl: `http://localhost:3000`,

  // used by API
  adminLoginUrl: '/admin/login',

  apiListenPort: 3001,
  storeListenPort: 3000,

  // used by API
  mongodbServerUrl: 'mongodb://127.0.0.1:27017/shop',

  smtpServer: {
    host: 'smtp.domain.test',
    port: 587,
    secure: false,
    user: 'hello@domain.test',
    pass: 'domain.test.psw',
    fromName: 'domain.test.name',
    fromAddress: 'domain.test'
  },

  // key to sign tokens
  jwtSecretKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiT3duZXIiLCJlbWFpbCI6ImRlbW9AZG9tYWluLnRlc3QiLCJhZG1pbiI6dHJ1ZX0.8ivuNfbUB2R9q2YyWCi7lwL73Xks0o8IVvcja78t8So',

  // key to sign store cookies
  cookieSecretKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9',

  // path to uploads
  categoriesUploadPath: 'public/content/images/categories',
  productsUploadPath: 'public/content/images/products',
  filesUploadPath: 'public/content',
  themeAssetsUploadPath: 'theme/assets/images',

  // url to uploads
  categoriesUploadUrl: '/images/categories',
  productsUploadUrl: '/images/products',
  filesUploadUrl: '',
  themeAssetsUploadUrl: '/assets/images',

  // store UI language
  language: 'en',

  // used by API
  orderStartNumber: 1000,

  developerMode: false
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
roboto-cloudcommented, Feb 10, 2018

Hi @sonufrienko, thanks! your support is the best 💯 it finally work adding this to mongo:

db.settings.insert({
  domain: 'http://domain.test',
  logo_file: null,
  language: 'en',
  currency_code: 'USD',
  currency_symbol: '$',
  currency_format: '${amount}',
  thousand_separator: ',',
  decimal_separator: '.',
  decimal_number: 2,
  timezone: 'Asia/Singapore',
  date_format: 'MMMM D, YYYY',
  time_format: 'h:mm a',
  default_shipping_country: 'SG',
  default_shipping_state: '',
  default_shipping_city: '',
  default_product_sorting: 'stock_status,price,position',
  weight_unit: 'kg',
  length_unit: 'cm',
  hide_billing_address: false
});

and I’can close this issue and have my zecerin working behind a proxy…

All the best!!

1reaction
sonufrienkocommented, Feb 10, 2018

Cezerin configuration has two places:

  1. /config/*.js files - for developers to start an app
  2. in database for a customer to modify from Dashboard
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load resource: net::ERR_CONNECTION_REFUSED ...
Your error means your client application is Unable to connect to your nodejs server. Fix. Your code : const uri = 'http://localhost:3000/contact ...
Read more >
wp admin page is not found | WordPress.org
HTTP ERROR 404. Browser console says – Failed to load resource: the server responded with a status of 404 (). I had error...
Read more >
Failed to login Prism Central with username "admin" due to ...
For chrome, Go to the MENU, Select "More tools" and the "Developer tools" option or press Ctrl+Shift+I: "Failed to load resource: the server ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found