Skip to content

Commit

Permalink
feat(config): update default STORAGE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 30, 2022
1 parent eb8a781 commit 973bd91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ build:

.PHONY: run
run:
@ STORAGE_URL="file://$(shell pwd)/data/storage" go run main.go server -v
go run main.go server -v

.PHONY: swagger
swagger:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Variable Name | Description | Defa
`DEBUG` | Set the value to `1` to enable debug logs | Off
`DEMO_MODE` | Auto Run `database migrate`, `database seed`, `node sync`| Off
`DATABASE_URL` | Postgresql connection parameters | `postgres://postgres:password@localhost/gosd?sslmode=disable`
`STORAGE_URL` | File storage path | `data/storage`
`LISTEN_ADDR` | Address to listen on (use absolute path for Unix socket) | `127.0.0.1:8000`
`PORT` | Override `LISTEN_ADDR` to `0.0.0.0:$PORT` (PaaS) | None
`BASE_URL` | Base URL to generate API links and base path | `http://localhost:8000/gosd/api/v3`
Expand Down
2 changes: 1 addition & 1 deletion app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func DefaultConfig() *Config {
RedisURL: "redis://localhost:6379/1",
ClientURL: "http://localhost:8000/gosd/api/v3",
DatabaseURL: "postgres://postgres:password@localhost:5432/gosd?sslmode=disable&TimeZone=Asia/Shanghai",
StorageURL: "file://data/storage",
StorageURL: "data/storage",
LuaFilePath: "default.lua",
Debug: true,
SingleUser: true,
Expand Down

0 comments on commit 973bd91

Please sign in to comment.