Merge pull request #204 from GreenTeodoro839/master [no ci]

Add tls support

Co-authored-by: GreenTeodoro839 <77104800+GreenTeodoro839@users.noreply.github.com>
This commit is contained in:
naiba 2022-05-15 00:02:46 +08:00 committed by GitHub
commit 5fca0a52ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
#Get server and key
param($server, $key)
param($server, $key, $tls)
# Download latest release from github
$repo = "naiba/nezha"
# x86 or x64
@ -59,7 +59,7 @@ Remove-Item "C:\nezha.zip"
Remove-Item "C:\nssm.zip"
Remove-Item "C:\temp" -Recurse
#安装部分
C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s $server -p $key -d
C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s $server -p $key $tls -d
C:\nezha\nssm.exe start nezha
#enjoy
Write-Host "Enjoy It!" -BackgroundColor DarkGreen -ForegroundColor Red