Default to forgejo-auto on forgejo
This commit is contained in:
@@ -67,7 +67,7 @@ Internal or external templates can be loaded to customize the look of the challe
|
|||||||
These templates are included by default:
|
These templates are included by default:
|
||||||
|
|
||||||
* `anubis`: An anubis-like themed challenge.
|
* `anubis`: An anubis-like themed challenge.
|
||||||
* `forgejo`: Uses the Forgejo template and assets from your own instance. Supports specifying themes like `forgejo-light` and `forgejo-dark`.
|
* `forgejo`: Uses the Forgejo template and assets from your own instance. Supports specifying themes like `forgejo-auto`, `forgejo-light` and `forgejo-dark`.
|
||||||
|
|
||||||
External templates for your site can be loaded specifying a full path to the `.gohtml` file. See [embed/templates/](embed/templates/) for examples to follow.
|
External templates for your site can be loaded specifying a full path to the `.gohtml` file. See [embed/templates/](embed/templates/) for examples to follow.
|
||||||
|
|
||||||
|
@@ -140,7 +140,7 @@ func main() {
|
|||||||
|
|
||||||
policyFile := flag.String("policy", "", "path to policy YAML file")
|
policyFile := flag.String("policy", "", "path to policy YAML file")
|
||||||
challengeTemplate := flag.String("challenge-template", "anubis", "name or path of the challenge template to use (anubis, forgejo)")
|
challengeTemplate := flag.String("challenge-template", "anubis", "name or path of the challenge template to use (anubis, forgejo)")
|
||||||
challengeTemplateTheme := flag.String("challenge-template-theme", "", "name of the challenge template theme to use (forgejo => [forgejo-dark, forgejo-light, gitea...])")
|
challengeTemplateTheme := flag.String("challenge-template-theme", "", "name of the challenge template theme to use (forgejo => [forgejo-auto, forgejo-dark, forgejo-light, gitea...])")
|
||||||
|
|
||||||
packageName := flag.String("package-path", internalPackageName, "package name to expose in .well-known url path")
|
packageName := flag.String("package-path", internalPackageName, "package name to expose in .well-known url path")
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
{{$theme := "forgejo-dark"}}
|
{{$theme := "forgejo-auto"}}
|
||||||
{{ if .Theme }}
|
{{ if .Theme }}
|
||||||
{{$theme = .Theme}}
|
{{$theme = .Theme}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
# Example cmdline (forward requests from upstream to port :8080)
|
# Example cmdline (forward requests from upstream to port :8080)
|
||||||
# $ go-away --bind :8080 --backend git.example.com=http://forgejo:3000 --policy examples/forgejo.yml --challenge-template forgejo --challenge-template-theme forgejo-dark
|
# $ go-away --bind :8080 --backend git.example.com=http://forgejo:3000 --policy examples/forgejo.yml --challenge-template forgejo --challenge-template-theme forgejo-auto
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user