From 272a7285bc540c6daf916a5f2757cc4234139dd3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Apr 2018 10:32:32 +0100 Subject: [PATCH] ipv6 style urls --- src/freedombone-app-cryptpad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;";