Skip to content

Commit

Permalink
fix: Adjust default paths to match docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Mar 7, 2024
1 parent 68f48f8 commit f19c902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ func init() {
serveCmd.Flags().StringVar(&config.ApiVersion, "api-version", "v3", "the forge api version to use")
serveCmd.Flags().IntVar(&config.Port, "port", 8080, "the port to listen to")
serveCmd.Flags().StringVar(&config.Bind, "bind", "127.0.0.1", "host to listen to")
serveCmd.Flags().StringVar(&config.ModulesDir, "modulesdir", "/opt/gorge/modules", "directory containing all the modules")
serveCmd.Flags().StringVar(&config.ModulesDir, "modulesdir", "~/.gorge/modules", "directory containing all the modules")
serveCmd.Flags().StringVar(&config.Backend, "backend", "filesystem", "backend to use")
serveCmd.Flags().StringVar(&config.CORSOrigins, "cors", "*", "allowed cors origins separated by comma")
serveCmd.Flags().StringVar(&config.FallbackProxyUrl, "fallback-proxy", "", "optional fallback upstream proxy url")
serveCmd.Flags().BoolVar(&config.Dev, "dev", false, "enables dev mode")
serveCmd.Flags().StringVar(&config.CacheDir, "cachedir", "/var/cache/gorge", "cache directory")
serveCmd.Flags().StringVar(&config.CacheDir, "cachedir", "~/.gorge/cache", "cache directory")
serveCmd.Flags().StringVar(&config.CachePrefixes, "cache-prefixes", "/v3/files", "url prefixes to cache")
serveCmd.Flags().StringVar(&config.JwtSecret, "jwt-secret", "changeme", "jwt secret")
serveCmd.Flags().StringVar(&config.JwtTokenPath, "jwt-token-path", "~/.gorge/token", "jwt token path")
Expand Down

0 comments on commit f19c902

Please sign in to comment.