diff --git a/EsefexApi/Dockerfile.pterodactyl b/EsefexApi/Dockerfile.pterodactyl index 413bfc2..32f40b4 100644 --- a/EsefexApi/Dockerfile.pterodactyl +++ b/EsefexApi/Dockerfile.pterodactyl @@ -7,7 +7,8 @@ RUN apt-get update && \ sudo \ passwd \ libc6 \ - ca-certificates + ca-certificates \ + ffmpeg RUN useradd -m -d /home/container -s /bin/bash container diff --git a/EsefexApi/api/routes/getlinkdefer.go b/EsefexApi/api/routes/getlinkdefer.go index ac3e25d..0e48f48 100644 --- a/EsefexApi/api/routes/getlinkdefer.go +++ b/EsefexApi/api/routes/getlinkdefer.go @@ -2,6 +2,7 @@ package routes import ( "html/template" + "log" "net/http" ) @@ -25,6 +26,7 @@ func (h *RouteHandlers) GetLinkDefer() http.Handler { tmpl, err := template.ParseFiles("./ressource/templates/link.html") if err != nil { + log.Println(err) http.Error(w, "Error parsing template", http.StatusInternalServerError) return } diff --git a/EsefexApi/api/routes/getlinkredirect.go b/EsefexApi/api/routes/getlinkredirect.go index fa8194a..7c033d7 100644 --- a/EsefexApi/api/routes/getlinkredirect.go +++ b/EsefexApi/api/routes/getlinkredirect.go @@ -55,6 +55,7 @@ func (h *RouteHandlers) GetLinkRedirect() http.Handler { tmpl, err := template.ParseFiles("./ressource/templates/linkredirect.html") if err != nil { + log.Println(err) http.Error(w, "Error parsing template", http.StatusInternalServerError) return } diff --git a/EsefexApi/go.mod b/EsefexApi/go.mod index d74a864..1994a3c 100644 --- a/EsefexApi/go.mod +++ b/EsefexApi/go.mod @@ -38,7 +38,7 @@ require ( github.com/jedib0t/go-pretty/v6 v6.5.3 github.com/pkg/errors v0.9.1 github.com/samber/lo v1.39.0 - github.com/stretchr/testify v1.8.4 + github.com/stretchr/testify v1.9.0 golang.org/x/crypto v0.16.0 // indirect golang.org/x/sys v0.16.0 // indirect layeh.com/gopus v0.0.0-20210501142526-1ee02d434e32 diff --git a/EsefexApi/go.sum b/EsefexApi/go.sum index b4677ea..cd82f92 100644 --- a/EsefexApi/go.sum +++ b/EsefexApi/go.sum @@ -37,6 +37,7 @@ github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCko github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -45,6 +46,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz github.com/samber/lo v1.39.0 h1:4gTz1wUhNYLhFSKl6O+8peW0v2F4BCY034GRpU9WnuA= github.com/samber/lo v1.39.0/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= @@ -91,6 +94,7 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= layeh.com/gopus v0.0.0-20210501142526-1ee02d434e32 h1:/S1gOotFo2sADAIdSGk1sDq1VxetoCWr6f5nxOG0dpY= layeh.com/gopus v0.0.0-20210501142526-1ee02d434e32/go.mod h1:yDtyzWZDFCVnva8NGtg38eH2Ns4J0D/6hD+MMeUGdF0= diff --git a/EsefexApi/push.all.sh b/EsefexApi/push-all.sh similarity index 100% rename from EsefexApi/push.all.sh rename to EsefexApi/push-all.sh