瀏覽代碼

ipv6 style urls

Bob Mottram 7 年之前
父節點
當前提交
272a7285bc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-app-cryptpad

+ 2
- 2
src/freedombone-app-cryptpad 查看文件

@@ -368,7 +368,7 @@ function mesh_install_cryptpad {
368 368
 
369 369
     cryptpad_nginx_site=$rootdir/etc/nginx/sites-available/cryptpad
370 370
     { echo 'server {';
371
-      echo "  listen 80 default_server;";
371
+      echo '  listen [::]:80 default_server;';
372 372
       echo "  server_name P${PEER_ID}.local;";
373 373
       echo '';
374 374
       echo '  # Logs';
@@ -389,7 +389,7 @@ function mesh_install_cryptpad {
389 389
       echo '  }';
390 390
       echo '';
391 391
       echo '  location = /cryptpad_websocket {';
392
-      echo "    proxy_pass http://localhost:$CRYPTPAD_PORT;";
392
+      echo "    proxy_pass http://[::]:$CRYPTPAD_PORT;";
393 393
       echo "    proxy_set_header X-Real-IP \$remote_addr;";
394 394
       echo "    proxy_set_header Host \$host;";
395 395
       echo "    proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;";