WORK_PATH = {{ gitea_data_dirs[0] }} [server] PROTOCOL = http HTTP_PORT = {{ gitea_http_port }} HTTP_ADDR = {{ gitea_http_addr }} DOMAIN = {{ gitea_domain }} ROOT_URL = https://{{ gitea_domain }}/ # The built-in SSH server stays off: SSH clones go through the host's own sshd. # SSH_DOMAIN defaults to {{ gitea_domain }}, so the SSH clone URL in the UI only # works where that name reaches the host's SSH port; elsewhere use the HTTPS clone # URL (with a token). START_SSH_SERVER = false DISABLE_SSH = false OFFLINE_MODE = false PROXY_PROTOCOL = false ENABLE_PPROF = false [repository] ROOT = {{ gitea_data_dirs[2] }}/gitea-repositories [database] DB_TYPE = sqlite3 PATH = {{ gitea_data_dirs[0] }}/gitea.db [security] INSTALL_LOCK = true SECRET_KEY = {{ gitea_secret_key }} INTERNAL_TOKEN = {{ gitea_internal_token }} # A reverse proxy on the same host reaches this listener over loopback: trust # that hop so Gitea resolves the real client IP from X-Forwarded-For instead of # logging every request as coming from itself. REVERSE_PROXY_LIMIT is the number of # trusted proxy hops in X-Forwarded-For: set it to the real number of proxies, since a # higher value lets a client forge the address Gitea logs (and Fail2Ban bans). REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.1/32,::1/128 REVERSE_PROXY_LIMIT = {{ gitea_reverse_proxy_limit }} # REQUIRE_SIGNIN_VIEW is left unset on purpose: public repositories stay # readable without signing in. [oauth2] JWT_SECRET = {{ gitea_jwt_secret }} [service] REGISTER_EMAIL_CONFIRM = {{ 'true' if gitea_register_email_confirm | bool else 'false' }} ENABLE_NOTIFY_MAIL = {{ 'true' if gitea_mailer_enabled | bool else 'false' }} DISABLE_REGISTRATION = true {% if gitea_mailer_enabled | bool %} [mailer] ENABLED = true PROTOCOL = {{ gitea_mailer_protocol }} SMTP_ADDR = {{ gitea_mailer_smtp_addr }} SMTP_PORT = {{ gitea_mailer_smtp_port }} FROM = {{ gitea_mailer_from }} USER = {{ gitea_mailer_user }} PASSWD = `{{ gitea_mailer_passwd }}` {% if gitea_mailer_subject_prefix | length > 0 %} SUBJECT_PREFIX = {{ gitea_mailer_subject_prefix }} {% endif %} [admin] DEFAULT_EMAIL_NOTIFICATIONS = {{ gitea_default_email_notifications }} {% endif %}