Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jordanrbaker opened this issue Jul 11, 2023 · 2 comments · Fixed by #25818
Labels

Comments

@jordanrbaker
Copy link

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

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jul 11, 2023

Please use 1.20 nightly


Hmm, it becomes a UI bug in 1.20 nightly.

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug topic/ui Change the appearance of the Gitea UI and removed type/bug issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail labels Jul 11, 2023
@wxiaoguang
Copy link
Contributor

-> Show correct SSL Mode on "install page" #25818

@wxiaoguang wxiaoguang removed the topic/ui Change the appearance of the Gitea UI label Jul 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants