Guest User

Untitled

a guest
Jun 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // docker run --rm -it -v $PWD:/public -p 80:80 caoboxiao/private-file-server
  2.  
  3. const express = require('express');
  4.  
  5. const staticLocalAuth = require('static-local-auth');
  6.  
  7. const app = express();
  8.  
  9. app.use(staticLocalAuth());
  10. app.use(express.static('/public'))
  11.  
  12. app.listen(80);
Add Comment
Please, Sign In to add comment