Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 552164b6b6 | |||
| 3229ddcbf3 | |||
| cd5aa34df8 | |||
| edc8fc1f31 | |||
| a560e861a6 | |||
| 7ed0eb2310 | |||
| f9f5d03ba5 | |||
| 0286188105 | |||
| 92e5b7f05a |
@@ -9,12 +9,7 @@ Vencloud is Vencord's API for cloud settings sync!
|
|||||||
|
|
||||||
We provide a Docker build, so you don't need anything installed besides Docker!
|
We provide a Docker build, so you don't need anything installed besides Docker!
|
||||||
|
|
||||||
### Using Docker and GitHub Container Registry
|
### Cloning the Repository
|
||||||
|
|
||||||
We publish a built, stable image on [GHCR](https://ghcr.io/vencord/vencloud). Pull the image using `ghcr.io/vencord/vencloud`. Use the
|
|
||||||
`docker-compose.yml` file we have in this repository as a reference for further setup!
|
|
||||||
|
|
||||||
### From Git
|
|
||||||
|
|
||||||
First of all, you'll have to clone the source code to a convenient location:
|
First of all, you'll have to clone the source code to a convenient location:
|
||||||
```sh
|
```sh
|
||||||
@@ -48,7 +43,7 @@ Please note that only the docker setup is supported by us.
|
|||||||
The native instructions are only provided for advanced users and we can't provide support if you get stuck!
|
The native instructions are only provided for advanced users and we can't provide support if you get stuck!
|
||||||
When in doubt, please use the docker setup.
|
When in doubt, please use the docker setup.
|
||||||
|
|
||||||
Alongside the Vencloud setup, you will also have to setup Redis. This will not be covered here, please refer to the Redis documentation.
|
Alongisde the Vencloud setup, you will also have to setup Redis. This will not be covered here, please refer to the Redis documentation.
|
||||||
|
|
||||||
1. Install the [Go programming language](https://go.dev/dl/)
|
1. Install the [Go programming language](https://go.dev/dl/)
|
||||||
2. Build the code: `go build -o backend`
|
2. Build the code: `go build -o backend`
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
version: "3.1"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
|||||||
@@ -144,11 +144,6 @@ func main() {
|
|||||||
ExposeHeaders: "ETag",
|
ExposeHeaders: "ETag",
|
||||||
AllowOrigins: "https://discord.com,https://ptb.discord.com,https://canary.discord.com,https://discordapp.com,https://ptb.discordapp.com,https://canary.discordapp.com",
|
AllowOrigins: "https://discord.com,https://ptb.discord.com,https://canary.discord.com,https://discordapp.com,https://ptb.discordapp.com,https://canary.discordapp.com",
|
||||||
}))
|
}))
|
||||||
|
|
||||||
// Add the docker health endpoint before the logger middleware, such that
|
|
||||||
// it doesn't spam the logs full with it
|
|
||||||
app.Get("/v1", routes.GET)
|
|
||||||
|
|
||||||
app.Use(logger.New())
|
app.Use(logger.New())
|
||||||
|
|
||||||
// #region settings
|
// #region settings
|
||||||
@@ -169,6 +164,8 @@ func main() {
|
|||||||
app.Delete("/v1", requireAuth, routes.DELETE)
|
app.Delete("/v1", requireAuth, routes.DELETE)
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
|
app.Get("/v1", routes.GET)
|
||||||
|
|
||||||
app.Get("/", func(c *fiber.Ctx) error {
|
app.Get("/", func(c *fiber.Ctx) error {
|
||||||
return c.Redirect(g.ROOT_REDIRECT, 303)
|
return c.Redirect(g.ROOT_REDIRECT, 303)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user