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 IMAGEOPTION
ARG CONCURRENT_IMAGES ARG CONCURRENT_IMAGES
RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl tzdata
RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl ENV TZ="Europe/Rome"
ENV GOMEMLIMIT=2750MiB ENV GOMEMLIMIT=2750MiB
ENV GOGC=100 ENV GOGC=100
ENV PGHOST=$PGHOST 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 { if len(in_db) == 0 {
// not found in db // not found in db
if config.Cfg.Images.Enabled { if config.Cfg.Images.Enabled {
@ -207,9 +205,7 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) {
if found_img && found_thumb { if found_img && found_thumb {
break break
} }
fmt.Printf("%s -> %s\n", fotoUrl, ref.OgURL)
if fotoUrl == ref.OgURL { if fotoUrl == ref.OgURL {
fmt.Println("match")
if ref.IsThumbnail { if ref.IsThumbnail {
found_thumb = true found_thumb = true
continue continue
@ -218,7 +214,6 @@ func (u *Updater) setupMediaWorkload(xml *typesdefs.AnnunciXML) {
} }
} }
if !found_img || !found_thumb { if !found_img || !found_thumb {
fmt.Printf("not found img %s\n", fotoUrl)
img_process = true img_process = true
break break
} }

View file

@ -76,7 +76,8 @@ ARG SKEBBY_PASS
ENV SKEBBY_PASS=$SKEBBY_PASS ENV SKEBBY_PASS=$SKEBBY_PASS
ENV REVALIDATION_SECRET="SWKpgaaLfsyeqV1eOT0WG7TUFBewir8kJXure3O37ki8Lt4Z4IiEgBW4zPHDdM5c" 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 addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001 RUN adduser -S nextjs -u 1001

View file

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