feat: HTTPS – URLs auf https://bollwerk.online aktualisiert, Docker-Ports auf localhost beschraenkt (#95)
This commit is contained in:
parent
e73d3a11a0
commit
fe7501bd27
3 changed files with 9 additions and 9 deletions
6
.github/skills/publish/SKILL.md
vendored
6
.github/skills/publish/SKILL.md
vendored
|
|
@ -88,15 +88,15 @@ ssh root@195.246.231.210 "cd /opt/bollwerk && docker compose up -d"
|
|||
|
||||
```powershell
|
||||
# Version-API prüfen
|
||||
Invoke-WebRequest -Uri "http://bollwerk.online:8080/api/version" -UseBasicParsing | Select-Object -ExpandProperty Content
|
||||
Invoke-WebRequest -Uri "https://bollwerk.online/api/version" -UseBasicParsing | Select-Object -ExpandProperty Content
|
||||
|
||||
# Homepage prüfen (QR-Code-Seite)
|
||||
Invoke-WebRequest -Uri "http://bollwerk.online:8080/" -UseBasicParsing | Select-Object StatusCode, StatusDescription
|
||||
Invoke-WebRequest -Uri "https://bollwerk.online/" -UseBasicParsing | Select-Object StatusCode, StatusDescription
|
||||
```
|
||||
|
||||
Erwartete Ausgabe von `/api/version`:
|
||||
```json
|
||||
{"versionCode":<neuer_code>,"versionName":"<neuer_name>","apkUrl":"http://bollwerk.online:8080/static/app-latest.apk"}
|
||||
{"versionCode":<neuer_code>,"versionName":"<neuer_name>","apkUrl":"https://bollwerk.online/static/app-latest.apk"}
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
8
.github/skills/publish/publish-apk.ps1
vendored
8
.github/skills/publish/publish-apk.ps1
vendored
|
|
@ -83,7 +83,7 @@ if ($SkipVerify) {
|
|||
Start-Sleep -Seconds 5
|
||||
|
||||
try {
|
||||
$response = Invoke-WebRequest -Uri "http://bollwerk.online:8080/api/version" -UseBasicParsing -TimeoutSec 10
|
||||
$response = Invoke-WebRequest -Uri "https://bollwerk.online/api/version" -UseBasicParsing -TimeoutSec 10
|
||||
$versionJson = $response.Content | ConvertFrom-Json
|
||||
|
||||
if ($versionJson.versionCode -eq $VersionCode -and $versionJson.versionName -eq $VersionName) {
|
||||
|
|
@ -94,10 +94,10 @@ if ($SkipVerify) {
|
|||
}
|
||||
} catch {
|
||||
Write-Warning "Verifizierung fehlgeschlagen: $_"
|
||||
Write-Host "Manuell pruefen: http://bollwerk.online:8080/api/version" -ForegroundColor DarkGray
|
||||
Write-Host "Manuell pruefen: https://bollwerk.online/api/version" -ForegroundColor DarkGray
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "`n=== Publish abgeschlossen ===" -ForegroundColor Cyan
|
||||
Write-Host "Homepage: http://bollwerk.online:8080/" -ForegroundColor DarkGray
|
||||
Write-Host "API: http://bollwerk.online:8080/api/version" -ForegroundColor DarkGray
|
||||
Write-Host "Homepage: https://bollwerk.online/" -ForegroundColor DarkGray
|
||||
Write-Host "API: https://bollwerk.online/api/version" -ForegroundColor DarkGray
|
||||
|
|
|
|||
4
.github/skills/vps-deploy/SKILL.md
vendored
4
.github/skills/vps-deploy/SKILL.md
vendored
|
|
@ -127,7 +127,7 @@ Der Server nutzt JWT-basierte Authentifizierung (kein API-Key mehr).
|
|||
|
||||
### Admin-Zugang
|
||||
|
||||
- **Admin-UI:** `http://bollwerk.online:8080/admin/`
|
||||
- **Admin-UI:** `https://bollwerk.online/admin/`
|
||||
- **Admin-User:** `admin`
|
||||
- **Admin-Passwort:** Der User muss das Passwort selbst eingeben. Es ist NICHT gespeichert – bei Bedarf den User fragen.
|
||||
- Beim ersten Start ohne `BOLLWERK_ADMIN_PASSWORD` ENV wird ein zufälliges Passwort generiert und in die Logs geschrieben.
|
||||
|
|
@ -183,7 +183,7 @@ ssh root@195.246.231.210 "docker logs bollwerk-server -f"
|
|||
|
||||
```powershell
|
||||
# Vom lokalen PC
|
||||
Invoke-WebRequest -Uri "http://bollwerk.online:8080/api/health" -UseBasicParsing
|
||||
Invoke-WebRequest -Uri "https://bollwerk.online/api/health" -UseBasicParsing
|
||||
|
||||
# Auf dem VPS direkt
|
||||
ssh root@195.246.231.210 "curl -s http://localhost:8080/api/health"
|
||||
|
|
|
|||
Loading…
Reference in a new issue