mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-04-19 09:32:53 +00:00
Compare commits
2 Commits
2ee0ed55f6
...
1af8d1f77d
Author | SHA1 | Date | |
---|---|---|---|
1af8d1f77d | |||
4c653fea36 |
12
.drone.yml
12
.drone.yml
@ -63,7 +63,7 @@ steps:
|
||||
volumes:
|
||||
- /root/.ssh/docker-build:/root/drone_rsa
|
||||
key_path: /root/drone_rsa
|
||||
command_timeout: 30m
|
||||
command_timeout: 50m
|
||||
script:
|
||||
- /home/rock64/jfa-go-build/build-stable.sh
|
||||
trigger:
|
||||
@ -94,7 +94,7 @@ steps:
|
||||
volumes:
|
||||
- /root/.ssh/docker-build:/root/drone_rsa
|
||||
key_path: /root/drone_rsa
|
||||
command_timeout: 30m
|
||||
command_timeout: 50m
|
||||
script:
|
||||
- ssh pi /home/pi/jfa-go-build/build-stable.sh
|
||||
trigger:
|
||||
@ -125,7 +125,7 @@ steps:
|
||||
volumes:
|
||||
- /root/.ssh/docker-build:/root/drone_rsa
|
||||
key_path: /root/drone_rsa
|
||||
command_timeout: 30m
|
||||
command_timeout: 50m
|
||||
script:
|
||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:latest --amend hrfee/jfa-go:manifest-latest-amd64 --amend hrfee/jfa-go:manifest-latest-arm64 --amend hrfee/jfa-go:manifest-latest-armhf
|
||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:latest
|
||||
@ -206,7 +206,7 @@ steps:
|
||||
volumes:
|
||||
- /root/.ssh/docker-build:/root/drone_rsa
|
||||
key_path: /root/drone_rsa
|
||||
command_timeout: 30m
|
||||
command_timeout: 50m
|
||||
script:
|
||||
- /home/rock64/jfa-go-build/build.sh
|
||||
|
||||
@ -243,7 +243,7 @@ steps:
|
||||
volumes:
|
||||
- /root/.ssh/docker-build:/root/drone_rsa
|
||||
key_path: /root/drone_rsa
|
||||
command_timeout: 30m
|
||||
command_timeout: 50m
|
||||
script:
|
||||
- ssh pi /home/pi/jfa-go-build/build.sh
|
||||
|
||||
@ -280,7 +280,7 @@ steps:
|
||||
volumes:
|
||||
- /root/.ssh/docker-build:/root/drone_rsa
|
||||
key_path: /root/drone_rsa
|
||||
command_timeout: 30m
|
||||
command_timeout: 50m
|
||||
script:
|
||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:unstable --amend hrfee/jfa-go:manifest-unstable-amd64 --amend hrfee/jfa-go:manifest-unstable-arm64 --amend hrfee/jfa-go:manifest-unstable-armhf
|
||||
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:unstable
|
||||
|
4
main.go
4
main.go
@ -596,7 +596,9 @@ func start(asDaemon, firstCall bool) {
|
||||
app.debug.Println("Loading pprof")
|
||||
pprof.Register(router)
|
||||
}
|
||||
router.GET("/lang/:page", app.GetLanguages)
|
||||
for _, p := range routePrefixes {
|
||||
router.GET(p+"/lang/:page", app.GetLanguages)
|
||||
}
|
||||
if !firstRun {
|
||||
for _, p := range routePrefixes {
|
||||
router.GET(p+"/", app.AdminPage)
|
||||
|
3
views.go
3
views.go
@ -152,6 +152,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
|
||||
"strings": app.storage.lang.Form[lang].Strings,
|
||||
"successMessage": app.config.Section("ui").Key("success_message").String(),
|
||||
"contactMessage": app.config.Section("ui").Key("contact_message").String(),
|
||||
"jfLink": app.config.Section("jellyfin").Key("public_server").String(),
|
||||
})
|
||||
inv, ok := app.storage.invites[code]
|
||||
if ok {
|
||||
@ -166,7 +167,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
|
||||
email = ""
|
||||
}
|
||||
gcHTML(gc, http.StatusOK, "form-loader.html", gin.H{
|
||||
"urlBase": app.getURLBase,
|
||||
"urlBase": app.getURLBase(gc),
|
||||
"cssClass": app.cssClass,
|
||||
"contactMessage": app.config.Section("ui").Key("contact_message").String(),
|
||||
"helpMessage": app.config.Section("ui").Key("help_message").String(),
|
||||
|
Loading…
Reference in New Issue
Block a user