Skip to content

Commit 2bd9ec0

Browse files
committed
chore: single proxy instance
1 parent daf3338 commit 2bd9ec0

File tree

7 files changed

+275
-142
lines changed

7 files changed

+275
-142
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gcr.io/distroless/base-debian11
1+
FROM gcr.io/distroless/base-debian12:nonroot
22

33
COPY bin/cache-offloader /usr/local/bin/
44

cmd/cache-offloader.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/neurocode-io/cache-offloader/pkg/worker"
1414
"github.com/rs/zerolog"
1515
"github.com/rs/zerolog/log"
16-
"github.com/rs/zerolog/pkgerrors"
1716
)
1817

1918
func getInMemoryStorage(cfg config.Config) http.Cacher {
@@ -52,8 +51,7 @@ func getRedisMemoryStorage(cfg config.Config) storage.RedisStorage {
5251
func setupLogging(logLevel zerolog.Level) {
5352
zerolog.SetGlobalLevel(logLevel)
5453
zerolog.MessageFieldName = "msg"
55-
zerolog.TimeFieldFormat = time.RFC3339Nano
56-
zerolog.ErrorStackMarshaler = pkgerrors.MarshalStack
54+
zerolog.TimeFieldFormat = time.RFC3339
5755
l := log.Level(logLevel)
5856
zerolog.DefaultContextLogger = &l
5957
}

dev.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ServerConfig
22
SERVER_PORT=8000
3-
SERVER_LOG_LEVEL=debug
3+
LOG_LEVEL=debug
44
SERVER_STORAGE=memory
55
DOWNSTREAM_HOST=http://httpbin.org
66
SHUTDOWN_GRACE_PERIOD=30

0 commit comments

Comments
 (0)