ipv6 style urls
This commit is contained in:
parent
f5477df602
commit
272a7285bc
|
@ -368,7 +368,7 @@ function mesh_install_cryptpad {
|
||||||
|
|
||||||
cryptpad_nginx_site=$rootdir/etc/nginx/sites-available/cryptpad
|
cryptpad_nginx_site=$rootdir/etc/nginx/sites-available/cryptpad
|
||||||
{ echo 'server {';
|
{ echo 'server {';
|
||||||
echo " listen 80 default_server;";
|
echo ' listen [::]:80 default_server;';
|
||||||
echo " server_name P${PEER_ID}.local;";
|
echo " server_name P${PEER_ID}.local;";
|
||||||
echo '';
|
echo '';
|
||||||
echo ' # Logs';
|
echo ' # Logs';
|
||||||
|
@ -389,7 +389,7 @@ function mesh_install_cryptpad {
|
||||||
echo ' }';
|
echo ' }';
|
||||||
echo '';
|
echo '';
|
||||||
echo ' location = /cryptpad_websocket {';
|
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 X-Real-IP \$remote_addr;";
|
||||||
echo " proxy_set_header Host \$host;";
|
echo " proxy_set_header Host \$host;";
|
||||||
echo " proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;";
|
echo " proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;";
|
||||||
|
|
Loading…
Reference in New Issue