dirkgroenen / mopidy-mopify

A web client that uses external web services to provide additional features and a more “complete” music experience.
Apache License 2.0
447 stars 44 forks source link

htaccess/passwd #217

Closed blackjack4494 closed 7 years ago

blackjack4494 commented 7 years ago

Hey, is there any easy solution for using/setting up some authentication? I tried creating htaccess and htpasswd here: /usr/local/lib/python2.7/dist-packages/mopidy_mopify/static/debug/src/app But I guess it is just being ignored. Anyway I am not even sure if it starts the app in this folder :D

vvasabi commented 7 years ago

.htaccess is an Apache httpd technology. I don’t believe Mopidy or Mopify would have anything that can support .htaccess.

That said, you can set up a reverse proxy with httpd, so Mopidy would be served via httpd and .htaccess rules can work. For more info, look up httpd’s ProxyPass directive or the P flag of RewriteRule.

dirkgroenen commented 7 years ago

Exactly what @vvasabi said. Mopidy uses Python's Tornado browser, so you won't be able to use .htaccess.