Skip to content

Docker installation failing when using INTERNAL_TOKEN_URI #21666

Closed
@whois-marvin-42

Description

@whois-marvin-42

Description

Docker install process generates an INTERNAL_TOKEN while variable INTERNAL_TOKEN_URI was set in docker-compose.yml ... which leaves us with an app.ini having both of them set ... terminating the container due to an invalid configuration ... and raising an error accordingly :

(...) Cannot specify both INTERNAL_TOKEN_URI and INTERNAL_TOKEN

Gitea Version

1.18.0-rc0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.githubusercontent.com/whois-marvin-42/7409ea57866a18b9695357457d02e221/raw/902e430a07f69e5d13a94897a802ae2ffa89004a/gistfile1.txt

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Using a pretty straightforward docker-compose.yml with your latest docker (rootless) image.
Trying to use Docker secrets feature when needed/possible for sensitive data = setting required variables (aka INTERNAL_TOKEN_URI being one of those) according to your documentation

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedissue/workaroundit is or has a workaroundtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions