Skip to content

Commit f19c902

Browse files
committed
fix: Adjust default paths to match docs
1 parent 68f48f8 commit f19c902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/serve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ func init() {
183183
serveCmd.Flags().StringVar(&config.ApiVersion, "api-version", "v3", "the forge api version to use")
184184
serveCmd.Flags().IntVar(&config.Port, "port", 8080, "the port to listen to")
185185
serveCmd.Flags().StringVar(&config.Bind, "bind", "127.0.0.1", "host to listen to")
186-
serveCmd.Flags().StringVar(&config.ModulesDir, "modulesdir", "/opt/gorge/modules", "directory containing all the modules")
186+
serveCmd.Flags().StringVar(&config.ModulesDir, "modulesdir", "~/.gorge/modules", "directory containing all the modules")
187187
serveCmd.Flags().StringVar(&config.Backend, "backend", "filesystem", "backend to use")
188188
serveCmd.Flags().StringVar(&config.CORSOrigins, "cors", "*", "allowed cors origins separated by comma")
189189
serveCmd.Flags().StringVar(&config.FallbackProxyUrl, "fallback-proxy", "", "optional fallback upstream proxy url")
190190
serveCmd.Flags().BoolVar(&config.Dev, "dev", false, "enables dev mode")
191-
serveCmd.Flags().StringVar(&config.CacheDir, "cachedir", "/var/cache/gorge", "cache directory")
191+
serveCmd.Flags().StringVar(&config.CacheDir, "cachedir", "~/.gorge/cache", "cache directory")
192192
serveCmd.Flags().StringVar(&config.CachePrefixes, "cache-prefixes", "/v3/files", "url prefixes to cache")
193193
serveCmd.Flags().StringVar(&config.JwtSecret, "jwt-secret", "changeme", "jwt secret")
194194
serveCmd.Flags().StringVar(&config.JwtTokenPath, "jwt-token-path", "~/.gorge/token", "jwt token path")

0 commit comments

Comments
 (0)