Skip to content

Commit

Permalink
Document further configuration of Uberspace
Browse files Browse the repository at this point in the history
- setting up Basic Auth
- prettifying URL
  • Loading branch information
pylipp committed Aug 15, 2019
1 parent e7640dc commit 5f45f2d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/fcgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,31 @@
On the client side, specify the host as
http://USER.STAR.uberspace.de/fcgi-bin/financeager.fcgi
The uberspace domain is publicly accessible. For basic authentication, run
htpasswd -m -c /var/www/virtual/USER/.htuser USER
and add a file ~/fcgi-bin/.htaccess with content
AuthType Basic
AuthName flask-financeager
AuthUserFile /var/www/virtual/USER/.htuser
Require valid-user
On the client side, specify user and password in the config file as documented
in the main README.
You can prettify the URL format by adding a file ~/html/.htaccess with content
RewriteEngine On
RewriteRule ^financeager/(.*)$ /fcgi-bin/financeager.fcgi/$1 [QSA,L]
Force a restart of the FCGI app by killing the existing one.
This allows you to access via
http://USER.STAR.uberspace.de/financeager
Further reading:
https://blog.lucas-hild.de/flask-uberspace
https://gist.github.com/tocsinDE/98c423da2724d23c02ff
https://docs.python.org/3.4/howto/webservers.html
https://wiki.uberspace.de/webserver:htaccess#verzeichnisschutz
"""
import os

Expand Down

0 comments on commit 5f45f2d

Please sign in to comment.