1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-23 17:07:42 +01:00

stage testing letsencrypt

This commit is contained in:
Kyle Spearrin 2017-08-21 11:35:09 -04:00
parent 437422ca60
commit 5fe587ea9f
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,8 @@ if($domain -ne "localhost") {
New-Item -ItemType directory -Path $letsEncryptPath | Out-Null
}
docker run -it --rm --name certbot -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $email -d $domain
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $email -d $domain `
--logs-dir $outputDir/letsencrypt/logs --staging
}
}

View File

@ -14,7 +14,7 @@ docker-compose --version
$letsEncryptLivePath = "${outputDir}/letsencrypt/live"
if(Test-Path -Path $letsEncryptLivePath) {
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
renew
renew --logs-dir $outputDir/letsencrypt/logs --staging
}
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down