diff options
-rwxr-xr-x | bin/taler-deployment-landing | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/taler-deployment-landing b/bin/taler-deployment-landing index 388ddae..0a51d2e 100755 --- a/bin/taler-deployment-landing +++ b/bin/taler-deployment-landing @@ -10,9 +10,13 @@ ulimit -c $((100 * 1024)) mkdir -p $HOME/sockets + +# redirect / to index.html, +# serve static files from $HOME/landing exec uwsgi \ --socket $HOME/sockets/landing.uwsgi \ --chmod-socket=660 \ - --route "^(.+) static: $HOME/landing/\$1" \ - --error-route-status '500 return:404 Not Found' - + --route "^/?$ redirect:index.html" \ + --route "^(.+) addvar:FILE=$HOME/landing/\$1" \ + --route-if "exists:\${FILE} static:\${FILE}" \ + --route "^(.+) break:404 not found" |