revert c0f3a80742
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
revert shortified link port fix
This commit is contained in:
@@ -7,6 +7,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
environment:
|
environment:
|
||||||
@@ -17,12 +19,11 @@ services:
|
|||||||
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
|
||||||
- SERVER_PORT=${SERVER_PORT}
|
- SERVER_PORT=${SERVER_PORT}
|
||||||
- REDIS_URL=${REDIS_URL}
|
- REDIS_URL=${REDIS_URL}
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:8080/ping"]
|
test: ["CMD", "curl", "-fsS", "http://localhost:8080/ping"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
retries: 10
|
retries: 20
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ func (h *LinksHandler) CreateLink(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
address := fmt.Sprintf("http://%v/r/%v", h.host, id)
|
address := fmt.Sprintf("http://%v:%s/r/%v", h.host, h.port, id)
|
||||||
|
|
||||||
response := CreateLinkResponse{
|
response := CreateLinkResponse{
|
||||||
Status: "success",
|
Status: "success",
|
||||||
|
|||||||
Reference in New Issue
Block a user