feat: Updated docker file
Server Deploy / deploy (push) Successful in 2m35s

This commit is contained in:
2026-07-28 16:04:51 +01:00
parent f46fb7fc0e
commit bc6c7cdb5a
9 changed files with 83 additions and 97 deletions
+1 -8
View File
@@ -139,10 +139,6 @@ func newServer(c *gin.Context) {
}
services.LogEvent(auth.InstanceID(c), "server.created", actorFromCtx(c), s.ServerID, "", "pre-registration token issued")
giteaHost := os.Getenv("GITEA_HOST")
if giteaHost == "" {
giteaHost = "gitea.example.com"
}
host := publicHostFromRequest(c)
@@ -392,10 +388,7 @@ func applyUpdates(c *gin.Context) {
}
func handleUpdateScript(c *gin.Context) {
giteaHost := os.Getenv("GITEA_HOST")
if giteaHost == "" {
giteaHost = "gitea.example.com"
}
giteaHost := "gitea.hostxtra.co.uk"
script := fmt.Sprintf(`#!/usr/bin/env bash
set -euo pipefail
+2 -8
View File
@@ -12,10 +12,7 @@ func handleInstallScriptWindows(c *gin.Context) {
serverID := c.Query("server_id")
token := c.Query("token")
giteaHost := os.Getenv("GITEA_HOST")
if giteaHost == "" {
giteaHost = "gitea.example.com"
}
giteaHost := "gitea.hostxtra.co.uk"
grpcHost := os.Getenv("GRPC_HOST")
@@ -51,10 +48,7 @@ func handleInstallScriptWindows(c *gin.Context) {
}
func handleUpdateScriptWindows(c *gin.Context) {
giteaHost := os.Getenv("GITEA_HOST")
if giteaHost == "" {
giteaHost = "gitea.example.com"
}
giteaHost := "gitea.hostxtra.co.uk"
script := fmt.Sprintf(
"#Requires -RunAsAdministrator\n"+