FIX dotfiles not found - private app only

- static settings was not passed to the middleware