🔧 Update Windows PowerShell scripts to use live production server

- Change HeadscaleServer from https://head.0bin.in to http://head.pharmq.kr
- Update PreAuthKey to match live production environment
- Set --accept-dns=false to align with Linux script configuration
- Update help text to reflect new default server address

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
PharmQ Admin 2025-09-27 10:36:55 +00:00
parent 057c5ccd0a
commit be4d337e2c
2 changed files with 8 additions and 8 deletions

View File

@ -4,8 +4,8 @@
param( param(
[switch]$Force, [switch]$Force,
[string]$HeadscaleServer = "https://head.0bin.in", [string]$HeadscaleServer = "http://head.pharmq.kr",
[string]$PreAuthKey = "8b3df41d37cb158ea39f41fc32c9af46e761de817ad06038", [string]$PreAuthKey = "b46923995afeaec90e588168f2e1bf99801775e8657ce003",
[string]$FarmqNetwork = "100.64.0.0/10" [string]$FarmqNetwork = "100.64.0.0/10"
) )
@ -258,7 +258,7 @@ function Register-Headscale {
"--login-server=$HeadscaleServer", "--login-server=$HeadscaleServer",
"--authkey=$PreAuthKey", "--authkey=$PreAuthKey",
"--accept-routes", "--accept-routes",
"--accept-dns=true" "--accept-dns=false"
) )
& $tailscalePath $arguments & $tailscalePath $arguments
@ -476,7 +476,7 @@ if ($args -contains "--help" -or $args -contains "-h") {
Write-Host "" Write-Host ""
Write-Host "Options:" Write-Host "Options:"
Write-Host " -Force Force disconnect existing connection and re-register" Write-Host " -Force Force disconnect existing connection and re-register"
Write-Host " -HeadscaleServer Server address (default: https://head.0bin.in)" Write-Host " -HeadscaleServer Server address (default: http://head.pharmq.kr)"
Write-Host "" Write-Host ""
Write-Host "Examples:" Write-Host "Examples:"
Write-Host " # Force re-registration" Write-Host " # Force re-registration"

View File

@ -8,8 +8,8 @@ $OutputEncoding = [Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8
param( param(
[switch]$Force, [switch]$Force,
[string]$HeadscaleServer = "https://head.0bin.in", [string]$HeadscaleServer = "http://head.pharmq.kr",
[string]$PreAuthKey = "8b3df41d37cb158ea39f41fc32c9af46e761de817ad06038", [string]$PreAuthKey = "b46923995afeaec90e588168f2e1bf99801775e8657ce003",
[string]$FarmqNetwork = "100.64.0.0/10" [string]$FarmqNetwork = "100.64.0.0/10"
) )
@ -264,7 +264,7 @@ function Register-Headscale {
"--login-server=$HeadscaleServer", "--login-server=$HeadscaleServer",
"--authkey=$PreAuthKey", "--authkey=$PreAuthKey",
"--accept-routes", "--accept-routes",
"--accept-dns=true" "--accept-dns=false"
) )
& $tailscalePath $arguments & $tailscalePath $arguments
@ -482,7 +482,7 @@ if ($args -contains "--help" -or $args -contains "-h") {
Write-Host "" Write-Host ""
Write-Host "옵션:" Write-Host "옵션:"
Write-Host " -Force 기존 연결을 강제로 해제하고 재등록" Write-Host " -Force 기존 연결을 강제로 해제하고 재등록"
Write-Host " -HeadscaleServer 서버 주소 (기본값: https://head.0bin.in)" Write-Host " -HeadscaleServer 서버 주소 (기본값: http://head.pharmq.kr)"
Write-Host "" Write-Host ""
Write-Host "예시:" Write-Host "예시:"
Write-Host " # 강제 재등록" Write-Host " # 강제 재등록"