Skip to content

Commit

Permalink
fix: Remove all CacheDir references
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jun 28, 2024
1 parent 6d49c25 commit 7bf5000
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Flags:
--bind string host to listen to (default "127.0.0.1")
--cache-max-age int max number of seconds responses should be cached (default 86400)
--cache-prefixes string url prefixes to cache (default "/v3/files")
--cachedir string cache directory (default "~/.gorge/cache")
--cors string allowed cors origins separated by comma (default "*")
--dev enables dev mode
--fallback-proxy string optional fallback upstream proxy url
Expand Down Expand Up @@ -102,8 +101,6 @@ cache-max-age: 86400
bind: 127.0.0.1
# The prefixes of requests to cache responses from. Multiple entries must be separated by comma.
cache-prefixes: /v3/files
# The directory to write the cached responses to.
cachedir: ~/.gorge/cache
# Value of the `Access-Control-Allow-Origin` header.
cors: "*"
# Enables the dev mode.
Expand Down Expand Up @@ -138,7 +135,6 @@ GORGE_BACKEND=filesystem
GORGE_BIND=127.0.0.1
GORGE_CACHE_MAX_AGE=86400
GORGE_CACHE_PREFIXES=/v3/files
GORGE_CACHEDIR=~/.gorge/cache
GORGE_CORS="*"
GORGE_DEV=false
GORGE_FALLBACK_PROXY=""
Expand Down
4 changes: 0 additions & 4 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ You can also enable the caching functionality to speed things up.`,

log.Setup(config.Dev)

config.CacheDir, err = homedir.Expand(config.CacheDir)
if err != nil {
log.Log.Fatal(err)
}
config.ModulesDir, err = homedir.Expand(config.ModulesDir)
if err != nil {
log.Log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var (
FallbackProxyUrl string
NoCache bool
CachePrefixes string
CacheDir string
CacheMaxAge int64
ImportProxiedReleases bool
JwtSecret string
Expand Down

0 comments on commit 7bf5000

Please sign in to comment.