9 Commits

Author SHA1 Message Date
lewisakura 552164b6b6 Merge branch 'main' into dev 2024-09-09 00:18:41 +01:00
dependabot[bot] 3229ddcbf3 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>
2024-09-09 00:09:28 +01:00
dependabot[bot] cd5aa34df8 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>
2024-09-09 00:05:02 +01:00
dependabot[bot] edc8fc1f31 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>
2024-09-09 00:03:12 +01:00
lewisakura a560e861a6 chore: tidy deps 2024-09-08 23:44:33 +01:00
lewisakura 7ed0eb2310 ci: bump go ver 2024-09-08 23:39:50 +01:00
lewisakura f9f5d03ba5 docs: drop warning 2024-09-08 23:38:47 +01:00
lewisakura 0286188105 chore: bump to go 1.23 2024-09-08 23:38:25 +01:00
lewisakura 92e5b7f05a chore: dependabot must use develop branch [skip ci] (#36) (#37) 2024-09-08 23:24:23 +01:00
3 changed files with 8 additions and 14 deletions
+2 -7
View File
@@ -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`
+2
View File
@@ -1,3 +1,5 @@
version: "3.1"
services: services:
redis: redis:
image: redis:alpine image: redis:alpine
+4 -7
View File
@@ -109,8 +109,8 @@ func main() {
} }
app := fiber.New(fiber.Config{ app := fiber.New(fiber.Config{
ProxyHeader: os.Getenv("PROXY_HEADER"), ProxyHeader: os.Getenv("PROXY_HEADER"),
}) })
g.RDB = redis.NewClient(&redis.Options{ g.RDB = redis.NewClient(&redis.Options{
Addr: g.REDIS_URI, Addr: g.REDIS_URI,
@@ -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)
}) })