diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-21 21:41:06 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-21 21:41:06 +0100 |
commit | 2d121e5fe95a5ddd4917c5014d2d68780033cfe1 (patch) | |
tree | 6572a863ff5ad09689cb14dad9f31ef8642a8781 | |
parent | 3a6dc22e4aa533a094dcf0374543dcd16550c92d (diff) | |
download | deployment-2d121e5fe95a5ddd4917c5014d2d68780033cfe1.tar.gz deployment-2d121e5fe95a5ddd4917c5014d2d68780033cfe1.tar.bz2 deployment-2d121e5fe95a5ddd4917c5014d2d68780033cfe1.zip |
landing uwsgi
-rwxr-xr-x | bin/taler-deployment-landing | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/bin/taler-deployment-landing b/bin/taler-deployment-landing index 86c800d..388ddae 100755 --- 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' |