Skip to content

Comments

Adds dev flag#962

Merged
flovilmart merged 2 commits intomasterfrom
dev-mode
Jan 25, 2019
Merged

Adds dev flag#962
flovilmart merged 2 commits intomasterfrom
dev-mode

Conversation

@flovilmart
Copy link
Contributor

when running with docker, as the local IP address is different from the dashboard
all the security features would light up.

This --dev flag let anyone run the dashboard locally easily

when running with docker, as the local IP address is different from the dashboard
all the security features would light up.

This --dev flag let anyone run the dashboard locally easily
Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code seems fine to me.

Why would this be needed. How is this different from allowInsecureHTTP option?

const cookieSessionSecret = program.cookieSessionSecret || process.env.PARSE_DASHBOARD_COOKIE_SESSION_SECRET;
const trustProxy = program.trustProxy || process.env.PARSE_DASHBOARD_TRUST_PROXY;
const dev = program.dev;
console.log(dev);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove console.

Also, should probably make an env key too. PARSE_DEV?

@flovilmart
Copy link
Contributor Author

This is different as it allows for bypassing user authentication requirement

@acinader
Copy link
Contributor

right.

Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment on console.log above

@flovilmart flovilmart merged commit 68432e7 into master Jan 25, 2019
@flovilmart flovilmart deleted the dev-mode branch January 25, 2019 19:54
@mtrezza mtrezza mentioned this pull request Oct 6, 2021
3 tasks
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

Successfully merging this pull request may close these issues.

2 participants