commit 2d121e5fe95a5ddd4917c5014d2d68780033cfe1 parent 3a6dc22e4aa533a094dcf0374543dcd16550c92d Author: Florian Dold <florian.dold@gmail.com> Date: Mon, 21 Nov 2016 21:41:06 +0100 landing uwsgi Diffstat:
| M | bin/taler-deployment-landing | | | 20 | +++++--------------- |
1 file changed, 5 insertions(+), 15 deletions(-)
diff --git a/bin/taler-deployment-landing b/bin/taler-deployment-landing @@ -10,19 +10,9 @@ ulimit -c $((100 * 1024)) mkdir -p $HOME/sockets -if [ ${TALER_CONFIG_STANDALONE:-0} = 1 ]; then - # run uwsgi without an app, and turn 500 into 404 - exec uwsgi --static-map /$USER=$HOME/landing \ - --static-index index.html \ - --socket $HOME/sockets/landing.uwsgi \ - --chmod-socket=660 \ - --error-route-status "500 return:404 Not Found" -else - # run uwsgi without an app, and turn 500 into 404 - exec uwsgi --check-static $HOME/landing \ - --static-index index.html \ - --socket $HOME/sockets/landing.uwsgi \ - --chmod-socket=660 \ - --error-route-status "500 return:404 Not Found" -fi +exec uwsgi \ + --socket $HOME/sockets/landing.uwsgi \ + --chmod-socket=660 \ + --route "^(.+) static: $HOME/landing/\$1" \ + --error-route-status '500 return:404 Not Found'