This commit is contained in:
Marco Pedone 2026-05-22 16:16:07 +02:00
parent 364f4a77b3
commit 0bad2fbb81
4 changed files with 5 additions and 10 deletions

View file

@ -14,8 +14,8 @@ ARG PGPORT
ARG IMAGEOPTION
ARG CONCURRENT_IMAGES
RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl
RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl tzdata
ENV TZ="Europe/Rome"
ENV GOMEMLIMIT=2750MiB
ENV GOGC=100
ENV PGHOST=$PGHOST

View file

@ -184,8 +184,6 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) {
}
}
fmt.Printf("codice: %s, in_bd: %d\n", *a.Codice, len(in_db))
if len(in_db) == 0 {
// not found in db
if config.Cfg.Images.Enabled {
@ -207,9 +205,7 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) {
if found_img && found_thumb {
break
}
fmt.Printf("%s -> %s\n", fotoUrl, ref.OgURL)
if fotoUrl == ref.OgURL {
fmt.Println("match")
if ref.IsThumbnail {
found_thumb = true
continue
@ -218,7 +214,6 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) {
}
}
if !found_img || !found_thumb {
fmt.Printf("not found img %s\n", fotoUrl)
img_process = true
break
}

View file

@ -76,7 +76,8 @@ ARG SKEBBY_PASS
ENV SKEBBY_PASS=$SKEBBY_PASS
ENV REVALIDATION_SECRET="SWKpgaaLfsyeqV1eOT0WG7TUFBewir8kJXure3O37ki8Lt4Z4IiEgBW4zPHDdM5c"
RUN apk add --no-cache curl typst
RUN apk add --no-cache curl typst tzdata
ENV TZ="Europe/Rome"
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001

View file

@ -3,6 +3,7 @@ services:
image: postgres:18-bookworm
environment:
TZ: Europe/Rome
PGTZ: Europe/Rome
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
@ -47,7 +48,6 @@ services:
restart: unless-stopped
pull_policy: "always"
environment:
TZ: Europe/Rome
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
@ -70,7 +70,6 @@ services:
restart: unless-stopped
pull_policy: "always"
environment:
TZ: Europe/Rome
INTERNAL_BASE_URL: http://web:3000
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}