6 Commits

Author SHA1 Message Date
clover d215e87278 fix horrendous mistake (#53) 2025-12-28 19:39:27 +00:00
lewisakura 849c44d858 docs: add note about GCHR 2025-04-07 11:09:01 +01:00
Fesaa a3d39f4d64 Fix log spam: move health endpoint before logger (#44)
Co-authored-by: lewisakura <lewi@lewisakura.moe>
2024-11-29 14:50:09 +00:00
Alexandre faa4c772f2 Remove deprecated version in docker compose file (#46) 2024-11-29 14:45:31 +00:00
lewisakura 075bc3faaf chore: try again, docker! 2024-09-09 00:25:47 +01:00
lewisakura 7bf5f9cd6f merge: dev (#43)
* chore: dependabot must use develop branch [skip ci] (#36) (#37)

* chore: bump to go 1.23

* docs: drop warning

* ci: bump go ver

* chore: tidy deps

* chore(deps): bump github.com/ansrivas/fiberprometheus/v2 from 2.6.0 to 2.7.0 (#39)

Bumps [github.com/ansrivas/fiberprometheus/v2](https://github.com/ansrivas/fiberprometheus) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/ansrivas/fiberprometheus/releases)
- [Changelog](https://github.com/ansrivas/fiberprometheus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ansrivas/fiberprometheus/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/ansrivas/fiberprometheus/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/redis/go-redis/v9 from 9.0.2 to 9.6.1 (#40)

Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis) from 9.0.2 to 9.6.1.
- [Release notes](https://github.com/redis/go-redis/releases)
- [Changelog](https://github.com/redis/go-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/go-redis/compare/v9.0.2...v9.6.1)

---
updated-dependencies:
- dependency-name: github.com/redis/go-redis/v9
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/prometheus/client_golang from 1.16.0 to 1.20.3 (#41)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.16.0 to 1.20.3.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.20.3/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.16.0...v1.20.3)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 00:20:38 +01:00
3 changed files with 14 additions and 8 deletions
+7 -2
View File
@@ -9,7 +9,12 @@ Vencloud is Vencord's API for cloud settings sync!
We provide a Docker build, so you don't need anything installed besides Docker!
### Cloning the Repository
### Using Docker and GitHub Container Registry
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:
```sh
@@ -43,7 +48,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!
When in doubt, please use the docker setup.
Alongisde the Vencloud setup, you will also have to setup Redis. This will not be covered here, please refer to the Redis documentation.
Alongside 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/)
2. Build the code: `go build -o backend`
-2
View File
@@ -1,5 +1,3 @@
version: "3.1"
services:
redis:
image: redis:alpine
+7 -4
View File
@@ -109,8 +109,8 @@ func main() {
}
app := fiber.New(fiber.Config{
ProxyHeader: os.Getenv("PROXY_HEADER"),
})
ProxyHeader: os.Getenv("PROXY_HEADER"),
})
g.RDB = redis.NewClient(&redis.Options{
Addr: g.REDIS_URI,
@@ -144,6 +144,11 @@ func main() {
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",
}))
// 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())
// #region settings
@@ -164,8 +169,6 @@ func main() {
app.Delete("/v1", requireAuth, routes.DELETE)
// #endregion
app.Get("/v1", routes.GET)
app.Get("/", func(c *fiber.Ctx) error {
return c.Redirect(g.ROOT_REDIRECT, 303)
})