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
ports #1
Comments
Unfortunately, ports are not supported at the moment :-( Basically, I need to extend the code to support ports as well (will do that, but it will take me a few days until I find the time). Interface should (will) be
with the port as an optional parameter. Would that be fine for you? |
I think you shold make it use the http too...this is what I did. app.all(/./, function(req, res, next) { Where cfg.site_url can be http://example.com:3000 |
I created a new package: npm install express-force-domain |
Why didn't you just update the existing one and send a pull request? |
i was going to but after reading through your code it seems to be doing a bit more than what I was needing. |
Do i need to add the port?
My app runs on port 8080 in development and port 80 in production.
I have a config variable I can use, but it includes http://example.com:8080 or http://example.com
Can I just use that
app.use(require('node-force-domain').redirect(cfg.site_url));
The text was updated successfully, but these errors were encountered: