feat: add custom Gitea landing page and re-enable public access

- Disable REQUIRE_SIGNIN_VIEW to allow public landing page
- Mount custom templates directory
- Add custom home.tmpl with simple welcome page and sign-in button
- Remove default Gitea promotional content

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-15 19:00:37 +01:00
parent c57897652e
commit 56a8f2d6a3
2 changed files with 34 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./public:/data/gitea/public:ro
- ./templates:/data/gitea/templates:ro
environment:
TZ: ${TIMEZONE:-Europe/Berlin}
USER_UID: 1000
@@ -37,7 +38,7 @@ services:
GITEA__mailer__SMTP_PORT: 1025
GITEA__mailer__FROM: ${EMAIL_FROM}
GITEA__service__DISABLE_REGISTRATION: false
GITEA__service__REQUIRE_SIGNIN_VIEW: true
GITEA__service__REQUIRE_SIGNIN_VIEW: false
GITEA__packages__ENABLED: true
GITEA__actions__ENABLED: true
GITEA__ui__THEMES: gitea-auto,gitea-light,gitea-dark,arc-green,edge-auto,edge-dark,edge-light,everforest-auto,everforest-dark,everforest-light,gruvbox-auto,gruvbox-dark,gruvbox-light,gruvbox-material-auto,gruvbox-material-dark,gruvbox-material-light,nord,palenight,soft-era,sonokai,sonokai-andromeda,sonokai-atlantis,sonokai-espresso,sonokai-maia,sonokai-shusia

32
dev/templates/home.tmpl Normal file
View File

@@ -0,0 +1,32 @@
{{template "base/head" .}}
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
<div class="tw-mb-8 tw-px-8">
<div class="center">
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
<div class="hero">
<h1 class="ui icon header title tw-text-balance">
{{AppName}}
</h1>
<h2 class="tw-text-balance">Git with a cup of tea</h2>
</div>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-mark-github"}} Welcome to Pivoine Git
</h1>
<p class="large tw-text-balance">
A painless self-hosted Git service for development and collaboration.
</p>
{{if not .IsSigned}}
<div class="tw-mt-8">
<a class="ui primary button" href="{{AppSubUrl}}/user/login">
{{svg "octicon-sign-in"}} Sign In
</a>
</div>
{{end}}
</div>
</div>
</div>
{{template "base/footer" .}}