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

Allow use of config file instead of command line params #696

Closed
JEAxero opened this issue Jul 12, 2021 · 1 comment
Closed

Allow use of config file instead of command line params #696

JEAxero opened this issue Jul 12, 2021 · 1 comment

Comments

@JEAxero
Copy link

JEAxero commented Jul 12, 2021

I'm getting started using http-server and would like to be able to put my command line params in a config file and have that used instead.

For example: http-server --config my_config.json

where my_config.json would have something like this:

{ port: 8484, gzip: true, brotli: true, proxy: "http:localhost:8484?" }

Which would run as if I typed this at the command line:

http-server ./dist --port 8484 --gzip --brotli --proxy http://localhost:8484?

@thornjad
Copy link
Member

I'm generally in favor of this, though this is a duplicate of #24 (one of our oldest issues). It did have a PR (#131) attached but it couldn't keep up with changes in master. I'd welcome a new PR for sure.

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