mirror of
https://github.com/bitwarden/server.git
synced 2025-05-21 11:34:31 -05:00
stage testing letsencrypt
This commit is contained in:
parent
437422ca60
commit
5fe587ea9f
@ -23,7 +23,8 @@ if($domain -ne "localhost") {
|
|||||||
New-Item -ItemType directory -Path $letsEncryptPath | Out-Null
|
New-Item -ItemType directory -Path $letsEncryptPath | Out-Null
|
||||||
}
|
}
|
||||||
docker run -it --rm --name certbot -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ docker-compose --version
|
|||||||
$letsEncryptLivePath = "${outputDir}/letsencrypt/live"
|
$letsEncryptLivePath = "${outputDir}/letsencrypt/live"
|
||||||
if(Test-Path -Path $letsEncryptLivePath) {
|
if(Test-Path -Path $letsEncryptLivePath) {
|
||||||
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
|
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
|
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down
|
||||||
|
Loading…
x
Reference in New Issue
Block a user