English | 简体中文
space-aofs (AO.space File Service) is an internal module that provides file services for the AO.space server. It works in conjunction with the space-gateway and space-nginx modules to provide file access interfaces, including file listing, file upload, file download, and file management APIs.
Please install the latest version of Docker.
Please follow the steps below to download the source code:
- Create a local directory, run cmd:
mkdir space-aofs
- Enter the local directory, run cmd:
cd ./space-aofs
- Run cmd:
git clone git@github.com:ao-space/space-aofs.git .
Run cmd: docker build -t hub.eulix.xyz/ao-space/space-aofs:{tag} .
, Where the tag
parameter can be modified according to the actual situation.。
Please refer to server deploy.
- Golang 1.18+
- Redis 5.0 +
- PostgreSQL 11.0 +
- SQL_HOST: PostgreSQL server host
- SQL_PORT:PostgreSQL server port
- SQL_USER: PostgreSQL access account
- SQL_PASSWORD:PostgreSQL access password
- SQL_DATABASE:PostgreSQL database name
- DATA_PATH: path for data saving
- REDIS_URL:redis server url
- REDIS_PASS:redis server password
- STREAM_MQ_MAX_LEN:length for message queue,default: 1000
- REDIS_STREAM_NAME:message queue, default: fileChangelogs
- GIN_MODE:debug/release
- Install swag : `go install github.com/swaggo/swag/cmd/swag@latest``
- Run cmd:
swag init --parseDependency --parseInternal --o ./routers/api/docs
- Install golang
- Start Redis
- Start PostgreSQL
- Set up the environment variables
- Run cmd:
go run .
Contributions to this project are very welcome. Here are some guidelines and suggestions to help you get involved in the project.
Finally, thank you for your contribution to this project. We welcome contributions in all forms, including but not limited to code contributions, issue reports, feature requests, documentation writing, etc. We believe that with your help, this project will become more perfect and stronger.