Skip to content

docker DISABLE_SSH and DISABLE_REGISTRATION environment variables not working #16018

Closed
@tamis-laan

Description

@tamis-laan

Using the latest docker version of gitea docker with docker compose:

  gitea:
    image: gitea/gitea
    environment:
      - GITEA__server__DISABLE_SSH=true
      - GITEA__service__DISABLE_REGISTRATION=true
      - GITEA__repository__DEFAULT_PRIVATE=private
    volumes:
      - ./data/gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 3000:3000

The settings GITEA__server__DISABLE_SSH=true and GITEA__service__DISABLE_REGISTRATION=true are not working while GITEA__repository__DEFAULT_PRIVATE=private does work.

Looks like boolean values are not mapped properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtopic/distributionThis PR changes something about the packaging of Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions