[GH-ISSUE #13] Can't make it run #6

Open
opened 2026-03-03 13:50:19 +03:00 by kerem · 1 comment
Owner

Originally created by @pires22 on GitHub (Mar 28, 2022).
Original GitHub issue: https://github.com/isuryatk/pm2-webui/issues/13

Hello, I run this steps:

USAGE
git clone https://github.com/suryamodulus/pm2-webui
cd pm2-webui
npm install
cp env.example .env
npm run setup-admin-user (Required for login)
npm start

And when I run npm start it says application is served but I expose the port and it keeps saying connection refused.

I don't know if the issue is with my machine as I have other ports exposing services and they are working fine.

I tried to set app.proxy = false; in app.js but it didn't change anything.

And when I try to curl the url being logged in the machine it says "redirecting to login" as its supposed to, so the service is working fine... the issue is with exposing the port

Originally created by @pires22 on GitHub (Mar 28, 2022). Original GitHub issue: https://github.com/isuryatk/pm2-webui/issues/13 Hello, I run this steps: ##### USAGE ``` git clone https://github.com/suryamodulus/pm2-webui cd pm2-webui npm install cp env.example .env npm run setup-admin-user (Required for login) npm start ``` And when I run npm start it says application is served but I expose the port and it keeps saying connection refused. I don't know if the issue is with my machine as I have other ports exposing services and they are working fine. I tried to set app.proxy = false; in app.js but it didn't change anything. And when I try to curl the url being logged in the machine it says "redirecting to login" as its supposed to, so the service is working fine... the issue is with exposing the port
Author
Owner

@hishtadlut commented on GitHub (Nov 5, 2022):

require('dotenv').config()

const config = {
    HOST: process.env.HOST || '127.0.0.1',
    PORT: process.env.PORT || 4343,
    APP_DIR: process.cwd(),
    APP_SESSION_SECRET: process.env.APP_SESSION_SECRET || null,
    APP_USERNAME: process.env.APP_USERNAME || null,
    APP_PASSWORD: process.env.APP_PASSWORD || null,
    SHOW_GIT_INFO: process.env.SHOW_GIT_INFO || false,
    SHOW_ENV_FILE: process.env.SHOW_ENV_FILE || false,
    DEFAULTS: {
        LINES_PER_REQUEST: 50,
        BCRYPT_HASH_ROUNDS: 10,
    }
}

module.exports = config;

You should send environment variables

<!-- gh-comment-id:1304652424 --> @hishtadlut commented on GitHub (Nov 5, 2022): ``` require('dotenv').config() const config = { HOST: process.env.HOST || '127.0.0.1', PORT: process.env.PORT || 4343, APP_DIR: process.cwd(), APP_SESSION_SECRET: process.env.APP_SESSION_SECRET || null, APP_USERNAME: process.env.APP_USERNAME || null, APP_PASSWORD: process.env.APP_PASSWORD || null, SHOW_GIT_INFO: process.env.SHOW_GIT_INFO || false, SHOW_ENV_FILE: process.env.SHOW_ENV_FILE || false, DEFAULTS: { LINES_PER_REQUEST: 50, BCRYPT_HASH_ROUNDS: 10, } } module.exports = config; ``` You should send environment variables
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pm2-webui#6
No description provided.