Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
BatteredBunny committed Jan 7, 2024
1 parent 476a9fd commit e2353f8
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
roblox-account-value-api
result/
result
.idea
.idea
.direnv
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ docker:
nix run .#docker.copyToDockerDaemon

docker-push: docker
docker push ghcr.io/ayes-web/roblox-account-value-api:latest
docker push ghcr.io/batteredbunny/roblox-account-value-api:latest
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
This is needed as browser itself can't do many of the requests to roblox so a proxy of sorts is needed.

# Recommended usage
The recommended way to use this is to use the docker image, check the [docker-compose.yml](https://github.com/ayes-web/roblox-account-value-api/blob/master/docker-compose.yml) in the repo :)
The recommended way to use this is to use the docker image, check the [docker-compose.yml](https://github.com/BatteredBunny/roblox-account-value-api/blob/master/docker-compose.yml) in the repo :)

# Building docker image with nix
```
nix run github:ayes-web/roblox-account-value-api#docker.copyToDockerDaemon
nix run github:BatteredBunny/roblox-account-value-api#docker.copyToDockerDaemon
```

# Building standalone program with nix
```
nix build github:ayes-web/roblox-account-value-api
nix build github:BatteredBunny/roblox-account-value-api
```


Expand Down
2 changes: 1 addition & 1 deletion build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildGoModule rec {
];

meta = {
homepage = "https://github.com/ayes-web/roblox-account-value-api";
homepage = "https://github.com/BatteredBunny/roblox-account-value-api";
description = "Webapp that calculates account value in robux and euro";
mainProgram = name;
};
Expand Down
11 changes: 6 additions & 5 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ package main

import (
"flag"
"log"
"net/http"
"os"
"time"

"github.com/BurntSushi/toml"
"github.com/didip/tollbooth/v7"
"github.com/didip/tollbooth/v7/limiter"
"github.com/gin-gonic/gin"
"github.com/google/wire"
"log"
"net/http"
"os"
"time"
)

func setupLogging() *Logger {
Expand Down Expand Up @@ -62,7 +63,7 @@ func addRouter(uninitializedApp *uninitializedApplication) (app *Application) {
api.Use(app.ratelimitMiddleware())

app.Router.GET("/", func(c *gin.Context) {
c.Redirect(http.StatusTemporaryRedirect, "https://github.com/ayes-web/roblox-account-value-api")
c.Redirect(http.StatusTemporaryRedirect, "https://github.com/BatteredBunny/roblox-account-value-api")
})

return
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.8'

services:
roblox-account-value-api:
image: ghcr.io/ayes-web/roblox-account-value-api:latest
image: ghcr.io/batteredbunny/roblox-account-value-api:latest
container_name: roblox_account_value_api
ports:
- 8080:80
2 changes: 1 addition & 1 deletion docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'';
in
nix2container.packages.${pkgs.system}.nix2container.buildImage {
name = "ghcr.io/ayes-web/roblox-account-value-api";
name = "ghcr.io/batteredbunny/roblox-account-value-api";
tag = "latest";

copyToRoot = pkgs.cacert;
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ayes-web/roblox-account-value-api
module github.com/BatteredBunny/roblox-account-value-api

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2353f8

Please sign in to comment.