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