shortified link port fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-21 16:39:00 +03:00
parent e7d9489d49
commit c0f3a80742
2 changed files with 4 additions and 5 deletions

View File

@@ -8,8 +8,6 @@ services:
depends_on:
redis:
condition: service_healthy
ports:
- "8080:8080"
expose:
- 8080
environment:
@@ -20,11 +18,12 @@ services:
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- SERVER_PORT=${SERVER_PORT}
- REDIS_URL=${REDIS_URL}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/ping"]
test: ["CMD", "wget", "-qO-", "http://localhost:8080/ping"]
interval: 5s
timeout: 2s
retries: 20
retries: 10
start_period: 10s
redis:

View File

@@ -47,7 +47,7 @@ func (h *LinksHandler) CreateLink(c *gin.Context) {
return
}
address := fmt.Sprintf("http://%v:%s/r/%v", h.host, h.port, id)
address := fmt.Sprintf("http://%v/r/%v", h.host, id)
response := CreateLinkResponse{
Status: "success",