mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 13:38:13 -05:00
default to localhost if no domain provided
This commit is contained in:
parent
5ee0b4a9da
commit
0e247b711d
@ -11,6 +11,10 @@ if(!(Test-Path -Path $outputDir )){
|
|||||||
[string]$letsEncrypt = "n"
|
[string]$letsEncrypt = "n"
|
||||||
[string]$domain = $( Read-Host "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com)" )
|
[string]$domain = $( Read-Host "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com)" )
|
||||||
|
|
||||||
|
if($domain -eq "") {
|
||||||
|
$domain = "localhost"
|
||||||
|
}
|
||||||
|
|
||||||
if($domain -ne "localhost") {
|
if($domain -ne "localhost") {
|
||||||
$letsEncrypt = $( Read-Host "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n)" )
|
$letsEncrypt = $( Read-Host "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n)" )
|
||||||
|
|
||||||
|
@ -14,6 +14,11 @@ mkdir -p $OUTPUT_DIR
|
|||||||
LETS_ENCRYPT="n"
|
LETS_ENCRYPT="n"
|
||||||
read -p "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): " DOMAIN
|
read -p "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): " DOMAIN
|
||||||
|
|
||||||
|
if [ "$DOMAIN" == "" ]
|
||||||
|
then
|
||||||
|
DOMAIN="localhost"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$DOMAIN" != "localhost" ]
|
if [ "$DOMAIN" != "localhost" ]
|
||||||
then
|
then
|
||||||
read -p "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): " LETS_ENCRYPT
|
read -p "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): " LETS_ENCRYPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user