Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // docker run --rm -it -v $PWD:/public -p 80:80 caoboxiao/private-file-server
- const express = require('express');
- const staticLocalAuth = require('static-local-auth');
- const app = express();
- app.use(staticLocalAuth());
- app.use(express.static('/public'))
- app.listen(80);
Add Comment
Please, Sign In to add comment