env vars don't work, k8s #3213

Closed
opened 2025-11-02 05:04:05 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @andloh on GitHub (Apr 19, 2019).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • [ x] PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x] Not relevant
  • Log gist:

Description

Right to the case:

k8s config:

env:
        - name: DISABLE_SSH
          value: "true"

Inside gitea container:

bash-4.4# env | grep SSH
GITEA_APP_SERVICE_PORT_SSH=22
DISABLE_SSH=true

But the value is still "false" in the app.ini and same with the web interface, ofc.

I have tried these env vars too:

- name: DISABLE_REGISTRATION
          value: "true"
- name: REQUIRE_SIGNIN_VIEW
          value: "true"

...and those actually work.

I know I can use a configmap to resolve this issue, but env vars is useful too, somtimes :)

env ref: https://docs.gitea.io/en-us/install-with-docker/

Originally created by @andloh on GitHub (Apr 19, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ x] Not relevant - Log gist: ## Description Right to the case: k8s config: ``` env: - name: DISABLE_SSH value: "true" ``` Inside gitea container: ``` bash-4.4# env | grep SSH GITEA_APP_SERVICE_PORT_SSH=22 DISABLE_SSH=true ``` But the value is still "false" in the app.ini and same with the web interface, ofc. I have tried these env vars too: ``` - name: DISABLE_REGISTRATION value: "true" - name: REQUIRE_SIGNIN_VIEW value: "true" ``` ...and those actually work. I know I can use a configmap to resolve this issue, but env vars is useful too, somtimes :) env ref: https://docs.gitea.io/en-us/install-with-docker/
GiteaMirror added the issue/duplicate label 2025-11-02 05:04:05 -06:00
Author
Owner

@adelowo commented on GitHub (Apr 27, 2019):

This is a duplicate of https://github.com/go-gitea/gitea/issues/350

@adelowo commented on GitHub (Apr 27, 2019): This is a duplicate of https://github.com/go-gitea/gitea/issues/350
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3213