removed Storage vars

This commit is contained in:
Marco Pedone 2026-05-19 18:44:32 +02:00
parent 48b31a5491
commit 50a5b5c8e3
3 changed files with 1 additions and 14 deletions

View file

@ -13,8 +13,7 @@ ARG PGHOST
ARG PGPORT
ARG IMAGEOPTION
ARG CONCURRENT_IMAGES
ARG STORAGE_URL
ARG STORAGE_TOKEN
RUN apk add --no-cache ffmpeg ca-certificates libwebp-tools curl
ENV GOMEMLIMIT=2750MiB
@ -26,8 +25,6 @@ ENV POSTGRES_USER=$POSTGRES_USER
ENV POSTGRES_PASSWORD=$POSTGRES_PASSWORD
ENV IMAGEOPTION=$IMAGEOPTION
ENV CONCURRENT_IMAGES=$CONCURRENT_IMAGES
ENV STORAGE_URL=$STORAGE_URL
ENV STORAGE_TOKEN=$STORAGE_TOKEN
WORKDIR /app
COPY --from=builder /app/main /app/.

View file

@ -24,10 +24,6 @@ type Config struct {
ConcurrentLimit int
Path string
}
Storage struct {
Endpoint string
Token string
}
Server struct {
Port int
@ -62,10 +58,6 @@ func Load() *Config {
Cfg.Videos.ConcurrentLimit = getEnvAsInt("CONCURRENT_VIDEOS", 2)
Cfg.Videos.Path = filepath.Join(pwd, "videos")
// Storage config
Cfg.Storage.Endpoint = getEnv("STORAGE_URL", "")
Cfg.Storage.Token = getEnv("STORAGE_TOKEN", "")
// Server config
Cfg.Server.Port = getEnvAsInt("PORT", 1323)

View file

@ -6,8 +6,6 @@ services:
- "1323:1323"
restart: unless-stopped
environment:
STORAGE_URL: http://host.docker.internal:8080
STORAGE_TOKEN: "test"
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}