summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-21 21:41:06 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-21 21:41:06 +0100
commit2d121e5fe95a5ddd4917c5014d2d68780033cfe1 (patch)
tree6572a863ff5ad09689cb14dad9f31ef8642a8781 /bin
parent3a6dc22e4aa533a094dcf0374543dcd16550c92d (diff)
downloaddeployment-2d121e5fe95a5ddd4917c5014d2d68780033cfe1.tar.gz
deployment-2d121e5fe95a5ddd4917c5014d2d68780033cfe1.tar.bz2
deployment-2d121e5fe95a5ddd4917c5014d2d68780033cfe1.zip
landing uwsgi
Diffstat (limited to 'bin')
-rwxr-xr-xbin/taler-deployment-landing20
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'