feat: add frontendURL env
SonarQube Scan / SonarQube Trigger (push) Successful in 3m53s
Docker Build and Push / Run Tests (push) Successful in 2m29s
Docker Build and Push / Build and Push Docker Image (push) Successful in 14m47s
Tests / Run Tests (pull_request) Successful in 2m35s

This commit is contained in:
2026-07-19 12:09:42 +07:00
parent f1fa9332ac
commit d0a5033964
12 changed files with 22 additions and 6 deletions
+5 -2
View File
@@ -12,8 +12,9 @@ import (
)
type config struct {
domain string
sshPort string
domain string
frontendURL string
sshPort string
httpPort string
httpsPort string
@@ -49,6 +50,7 @@ func parse() (*config, error) {
}
domain := getenv("DOMAIN", "localhost")
frontendURL := getenv("FRONTEND_URL", "https://"+domain)
sshPort := getenv("PORT", "2200")
httpPort := getenv("HTTP_PORT", "8080")
@@ -89,6 +91,7 @@ func parse() (*config, error) {
return &config{
domain: domain,
frontendURL: frontendURL,
sshPort: sshPort,
httpPort: httpPort,
httpsPort: httpsPort,