APP_NAME = GinAtHome RUN_USER = git RUN_MODE = prod [database] DB_TYPE = postgres HOST = ginpgres:5432 NAME = gin USER = gin PASSWD = dbtest SSL_MODE = disable PATH = data/gogs.db [repository] ROOT = /data/repos DISABLE_HTTP_GIT = false SHOW_HTTP_GIT = false PREFERRED_LICENSES = Creative Commons CC0 1.0 Public Domain Dedication RAW_CAPTCHA_MIN_FILE_SIZE = 50 CAPTCHA_MIN_FILE_SIZE = 5 FORCE_PRIVATE = true AUTO_INIT = true [server] DOMAIN = SERVICE.org HTTP_PORT = 3000 ROOT_URL = https://SERVICE.org/ DISABLE_SSH = false ; Not using built-in SSH SSH_PORT = 22 START_SSH_SERVER = false OFFLINE_MODE = false APP_DATA_PATH = /data/tmp/appdata [picture] ENABLE_FEDERATED_AVATAR = true [session] PROVIDER = file COOKIE_NAME = gin_at_home [log] MODE = file LEVEL = Trace ROOT_PATH = /app/gogs/log [security] INSTALL_LOCK = true SECRET_KEY = [ use key from initial app.ini created during service setup ] COOKIE_USERNAME = gin_at_home_user COOKIE_REMEMBER_NAME = gin_at_home_user_remember LOGIN_REMEMBER_DAYS = 30 [repository.upload] ; Enable repository file uploads. ENABLED = true ; Path to temporarily store uploads (default path gets cleaned by Gogs in every start) TEMP_PATH = /data/tmp/uploads ; File types that are allowed to be uploaded, e.g. image/jpeg|image/png. Leave empty means allow any file type ALLOWED_TYPES = ; Maximum size of each file in MB FILE_MAX_SIZE = 10000 ANNEX_FILE_MIN_SIZE = 10 ; Maximum number of files per upload MAX_FILES = 100 [service] ACTIVE_CODE_LIVE_MINUTES = 180 RESET_PASSWD_CODE_LIVE_MINUTES = 1440 ; User need to confirm e-mail for registration REGISTER_EMAIL_CONFIRM = false ; Does not allow register and admin create account only DISABLE_REGISTRATION = false ; User must sign in to view anything. REQUIRE_SIGNIN_VIEW = false ; Mail notification ENABLE_NOTIFY_MAIL = true ; More detail: https://github.com/gogits/gogs/issues/165 ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; Enable captcha validation for registration ENABLE_CAPTCHA = true [mailer] ENABLED = false ; Buffer length of channel, keep it as it is if you don't know what it is. SEND_BUFFER_LEN = 100 ; Name displayed in mail title SUBJECT = %(APP_NAME)s ; Mail server ; Gmail: smtp.gmail.com:587 ; QQ: smtp.qq.com:465 ; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used. HOST = mailx.SERVICE.org:25 ; Disable HELO operation when hostname are different. DISABLE_HELO = true ; Custom hostname for HELO operation, default is from system. HELO_HOSTNAME = ; Do not verify the certificate of the server. Only use this for self-signed certificates SKIP_VERIFY = true ; Use client certificate USE_CERTIFICATE = false ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" ` format FROM = no-reply@SERVICE.org USER = PASSWD = ; Use text/plain as format of content USE_PLAIN_TEXT = false [api] MAX_RESPONSE_ITEMS = 10000 [ui] THEME_COLOR_META_TAG = `#ffffff` [git] ; Max number of lines allowed of a single file in diff view MAX_GIT_DIFF_LINES = 1000 ; Max number of characters of a line allowed in diff view MAX_GIT_DIFF_LINE_CHARACTERS = 5000 ; Max number of files shown in diff view MAX_GIT_DIFF_FILES = 100