From a0d693cc5f2305c16d7eb6796a2dd32c16d8ec66 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Nov 2016 20:49:58 +0000 Subject: [PATCH] Buffering --- src/freedombone-app-radicale | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-radicale b/src/freedombone-app-radicale index 553339eb..88b5ace7 100755 --- a/src/freedombone-app-radicale +++ b/src/freedombone-app-radicale @@ -331,6 +331,7 @@ function install_radicale { echo ' auth_basic "Radicale";' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo " auth_basic_user_file ${RADICALE_USERS};" >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo ' proxy_pass http://localhost:52322;' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} + echo ' proxy_buffering on;' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} @@ -349,6 +350,7 @@ function install_radicale { echo ' auth_basic "Radicale";' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo " auth_basic_user_file ${RADICALE_USERS};" >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo ' proxy_pass http://localhost:52322;' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} + echo ' proxy_buffering on;' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} @@ -356,8 +358,8 @@ function install_radicale { else # alter the existing site config if ! grep "radicale" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}; then - sed -i '/443/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://127.0.0.1:52322;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} - sed -i '/listen 127.0.0.1/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://127.0.0.1:52322;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} + sed -i '/ 443/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://127.0.0.1:52322;\n proxy_buffering on;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} + sed -i '/listen 127.0.0.1/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://127.0.0.1:52322;\n proxy_buffering on;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} fi fi