-
-
Save mabroor/2785558 to your computer and use it in GitHub Desktop.
Hosting Private password protected Sphinx Docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import barrel.cooper | |
import os | |
import static | |
app = static.Cling(os.path.join(os.path.dirname(__file__), '_build/html')) | |
app = barrel.cooper.basicauth(users=[('jacob', 'hunter2')])(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: gunicorn -w4 -b0.0.0.0:$PORT app:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static==0.4 | |
barrel==0.1.3 | |
gunicorn==0.14.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mabroor -- Any idea if this still works? I'm getting a 404 on my docs.