Skip to content

Commit afef8ff

Browse files
jawadhootjekkos
authored andcommitted
use github raw urls
curl fetches html content for non-raw urls
1 parent 0c3e7be commit afef8ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/init-selfcert.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ fi
1717
if [ ! -e "$data_path/conf/options-ssl-nginx.conf" ] || [ ! -e "$data_path/conf/ssl-dhparams.pem" ]; then
1818
echo "### Downloading recommended TLS parameters ..."
1919
mkdir -p "$data_path/conf"
20-
curl -s https://github.com/certbot/certbot/blob/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf"
21-
curl -s https://github.com/certbot/certbot/blob/master/certbot/certbot/ssl-dhparams.pem > "$data_path/conf/ssl-dhparams.pem"
20+
curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf"
21+
curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot/certbot/ssl-dhparams.pem > "$data_path/conf/ssl-dhparams.pem"
2222
echo
2323
fi
2424

0 commit comments

Comments
 (0)