diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 090bc875..8a7ade00 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -368,7 +368,7 @@ function mesh_install_cryptpad { cryptpad_nginx_site=$rootdir/etc/nginx/sites-available/cryptpad { echo 'server {'; - echo " listen 80 default_server;"; + echo ' listen [::]:80 default_server;'; echo " server_name P${PEER_ID}.local;"; echo ''; echo ' # Logs'; @@ -389,7 +389,7 @@ function mesh_install_cryptpad { echo ' }'; echo ''; echo ' location = /cryptpad_websocket {'; - echo " proxy_pass http://localhost:$CRYPTPAD_PORT;"; + echo " proxy_pass http://[::]:$CRYPTPAD_PORT;"; echo " proxy_set_header X-Real-IP \$remote_addr;"; echo " proxy_set_header Host \$host;"; echo " proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;";