Make /dev folder public

It happens that Service Worker do not trigger the Basic Auth
credential window when content fetched returns 401. Thus whenever
the browser "forgets" the credentials, playJS becomes unusable until
user unregister the service worker (or delete all the site's data on
mobile, which sucks as we want to have a working offline mode).
In fact playJS do not need to be private, as it is an open source
software. Thus the easiest workaround to this web browser (HTML5 spec ?)
is to make "/dev" folder public, but create a "/priv" directory where
user can store their private information.
This commit is contained in:
Nicolas Wavrant 2017-11-08 20:49:19 +01:00
parent 2018a5fcdc
commit e8aedb112c
3 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,7 @@ Thanks to web capabilities, PlayJS only needs in order to work :
</LimitExcept>
</Directory>
<Directory "/var/www/play/dev">
<Directory "/var/www/play/priv">
Dav On
AuthType Basic
AuthName "Authentification Required"

View File

@ -68,6 +68,7 @@
"/dev/codemirror/addon/",
"/dev/codemirror/mode/",
"/dev/codemirror/theme/",
"/priv/",
];
return RSVP.Queue();

1
priv/.placeholder Normal file
View File

@ -0,0 +1 @@
The content of this directory is private.