Switch to localhost
This commit is contained in:
parent
95a8ba3960
commit
ba8042c671
|
@ -357,7 +357,7 @@ function install_radicale {
|
|||
|
||||
# create the configuration
|
||||
echo '[server]' > ${RADICALE_DIRECTORY}/config
|
||||
echo 'hosts=127.0.0.1:52322' >> ${RADICALE_DIRECTORY}/config
|
||||
echo 'hosts=localhost:52322' >> ${RADICALE_DIRECTORY}/config
|
||||
echo 'ssl = False' >> ${RADICALE_DIRECTORY}/config
|
||||
echo 'daemon = False' >> ${RADICALE_DIRECTORY}/config
|
||||
echo 'base_prefix=/radicale/' >> ${RADICALE_DIRECTORY}/config
|
||||
|
@ -444,7 +444,7 @@ function install_radicale {
|
|||
echo -n '' > /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
fi
|
||||
echo 'server {' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
echo " listen 127.0.0.1:${RADICALE_ONION_PORT} default_server;" >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
echo " listen localhost:${RADICALE_ONION_PORT} default_server;" >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
echo '' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
echo " server_name ${RADICALE_ONION_HOSTNAME};" >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
echo '' >> /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
|
@ -463,8 +463,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 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}
|
||||
sed -i '/ 443/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://localhost:52322;\n proxy_buffering on;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
sed -i '/listen localhost/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://localhost:52322;\n proxy_buffering on;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue