Skip to content

Gitea database Environment Variable: 'GITEA__database__SSL_MODE' not reading from environment. #25817

Closed
@jordanrbaker

Description

@jordanrbaker

Description

I am currently writing out deployment code (Bicep) to push out a multi-tier Gitea install in Azure using a container instance for the webserver and a postgres flexi server for the database.

I've defined my environment variables, and after running my deployment everything works as expected other than the SSL_MODE variable, which does not apply (it stays as disabled).

Reproduction Steps:

Define Environment Variable in Bicep Code:

            {
              name: 'GITEA__database__SSL_MODE'
              value: 'require'
            } 

Referencing the cheat sheet here to pull the config value: https://docs.gitea.com/next/administration/config-cheat-sheet#database-database.

Check deployment to validate container deployed with variable successfully:

image

Navigate to web UI - SSL mode is not set to require:

image

Gitea Version

1.20.0+rc0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

See descriptions.

Git Version

No response

Operating System

Linux

How are you running Gitea?

Pulling directly from dockerhub, gitea/gitea:latest.

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions