Skip to content

Simpleyyt/AnCloud-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnCloud-Server

AnCloud-Server 是一个基于 Go 语言开发的 AnCloud 的服务端项目,使用 Gin 框架构建 WebRTC 信令服务。

快速开始

环境要求

  • Go 1.23.2 或更高版本
  • Docker(可选,用于容器化部署)

安装

克隆项目

git clone https://github.com/simpleyyt/AnCloud-Server.git
cd AnCloud-Server

安装依赖

go mod download

编译

本地编译

# Linux/macOS
go build -o ancloud-server

# Windows
go build -o ancloud-server.exe

交叉编译

# 编译 Linux 版本
GOOS=linux GOARCH=amd64 go build -o ancloud-server-linux-amd64

# 编译 Windows 版本
GOOS=windows GOARCH=amd64 go build -o ancloud-server-windows-amd64.exe

# 编译 macOS 版本
GOOS=darwin GOARCH=amd64 go build -o ancloud-server-darwin-amd64

运行

直接运行

# 运行源码
go run main.go

# 运行编译后的程序
./ancloud-server  # Linux/macOS
.\ancloud-server.exe  # Windows

使用 Docker 运行

docker build -t ancloud-server .
docker run -p 8080:8080 ancloud-server

配置

配置文件位于 config 目录下,支持通过 YAML 文件进行配置。

许可证

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors