Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make it run #13

Open
pires22 opened this issue Mar 28, 2022 · 1 comment
Open

Can't make it run #13

pires22 opened this issue Mar 28, 2022 · 1 comment

Comments

@pires22
Copy link

pires22 commented Mar 28, 2022

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

@hishtadlut
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants