admin/login Failed to load resource: net::ERR_CONNECTION_REFUSED
See original GitHub issueHi, 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:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sonufrienko, thanks! your support is the best 💯 it finally work adding this to mongo:
and I’can close this issue and have my zecerin working behind a proxy…
All the best!!
Cezerin configuration has two places: