Comments (4)
[imho]
I think in the year of 2017, we don't need .htpasswd
. Often, users store (hashed) passwords in the webroot. Authentication should nowadays be done by either by a (reverse) proxy or a separate auth service. Theoretically, even password authentication should be a thing of the past.
For the simple use case of setting up and adhoc web server, user & pw auth is sufficient.
I guess this is an ideological decision wether supporting these use cases is worth it for zeit and the broader community.
from serve.
Yeah, necessary .htpasswd
isn't the auth file format we should have.
But it should be something that wouldn't vendor lock and that is hassle free.
from serve.
Not sure I expressed clearly enough what my opinion on this matter is. If I did, don't take this as an offence.
I think it's not the job of serve
to deal with any auth more sophisticated than user/pw. It should be done by another service (as in web service) or proxy/api layer.
I've been following the development of http-server
for a while. This is a feature that, as you can see with many feature requests over at http-server
, only serves the needs of a very narrow user base and can easily be done by external packages.
from serve.
I agree with both of you. But overall, I think this would be too much for this little package. People should put something on top and use another service.
from serve.
Related Issues (20)
- Remove auto redirect
- Set server timezone to UTC
- Directory or file name with "#" or "?" does not work properly
- Do not serve hidden subfolders
- Restore silent mode HOT 2
- `npx serve` throws ENOENT error in [email protected] and newer HOT 1
- serve 14.2.1 CLI arguments issue http to https
- Testing local deployments for GitHub pages doesn't work since no `basePath` can be set HOT 6
- Add cleanUrls option to CLI interface
- IPV6 support
- Publish types for API with npm release
- Node.js 21: "[DEP0040] DeprecationWarning: The `punycode` module is deprecated." HOT 4
- serve didn't work in routing with react-router and vite in production HOT 1
- add --open to the CLI
- Anyway to run npx serve constantly? HOT 3
- `localhost:1234/foo/index.html.html` provokes a 404
- Add a file size limit to etag SHA calculations, fallback to "Last modified" when above this limit.
- Authentication is not available HOT 1
- Node.js 22: "[DEP0040] DeprecationWarning: The `punycode` module is deprecated." HOT 1
- Search functionality
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serve.