xoxys.gitea/templates/etc/containers/systemd/gitea.env.j2

214 lines
11 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
GITEA__RUN_MODE=prod
GITEA__repository__FORCE_PRIVATE={{ gitea_repository_force_private | bool | lower }}
GITEA__repository__DEFAULT_PRIVATE={{ gitea_repository_default_private }}
GITEA__repository__MAX_CREATION_LIMIT={{ gitea_repository_creation_limit }}
GITEA__repository__PREFERRED_LICENSES={{ gitea_repository_default_license | join(",") }}
GITEA__repository__DISABLE_HTTP_GIT={{ "false" if gitea_repository_http_enabled | bool else "true" }}
{% if gitea_repository_access_control_allow_origin is defined and gitea_repository_access_control_allow_origin %}
GITEA__repository__ACCESS_CONTROL_ALLOW_ORIGIN={{ gitea_repository_access_control_allow_origin }}
{% endif %}
GITEA__repository__USE_COMPAT_SSH_URI={{ gitea_repository_use_compat_ssh_uri | bool | lower }}
GITEA__repository__ENABLE_PUSH_CREATE_USER={{ gitea_repository_push_create_user_enabled | bool | lower }}
GITEA__repository__ENABLE_PUSH_CREATE_ORG={{ gitea_repository_push_create_org_enabled | bool | lower }}
GITEA__repository__DEFAULT_REPO_UNITS={{ gitea_repository_default_repo_units | join(",") }}
GITEA__repository__DEFAULT_BRANCH={{ gitea_repository_default_branch }}
GITEA__repository_0X2E_editor__LINE_WRAP_EXTENSIONS={{ gitea_repository_editor_line_wrap_ext | join(",") }}
GITEA__repository_0X2E_editor__PREVIEWABLE_FILE_MODES=markdown
{% if gitea_repository_upload_enabled | bool %}
GITEA__repository_0X2E_upload__ENABLED=true
{% if gitea_repository_upload_allowed_types %}
GITEA__repository_0X2E_upload__ALLOWED_TYPES={{ gitea_repository_upload_allowed_types | join(",") }}
{% endif %}
GITEA__repository_0X2E_upload__FILE_MAX_SIZE={{ gitea_repository_upload_max_filesize }}
GITEA__repository_0X2E_upload__MAX_FILES={{ gitea_repository_upload_max_files }}
{% else %}
GITEA__repository_0X2E_upload__ENABLED=false
{% endif %}
GITEA__repository_0X2E_pull_0X2D_request__WORK_IN_PROGRESS_PREFIXES={{ gitea_repository_pr_wip_prefix | join(",") }}
GITEA__repository_0X2E_pull_0X2D_request__CLOSE_KEYWORDS={{ gitea_repository_pr_close_keyword | join(",") }}
GITEA__repository_0X2E_pull_0X2D_request__REOPEN_KEYWORDS={{ gitea_repository_pr_reopen_keyword | join(",") }}
GITEA__repository_0X2E_issue__LOCK_REASONS={{ gitea_repository_issue_lock_reason | join(",") }}
GITEA__ui__EXPLORE_PAGING_NUM={{ gitea_ui_explore_paging_num }}
GITEA__ui__ISSUE_PAGING_NUM={{ gitea_ui_issue_paging_num }}
GITEA__ui__FEED_MAX_COMMIT_NUM={{ gitea_ui_feed_commit_num }}
GITEA__ui__GRAPH_MAX_COMMIT_NUM={{ gitea_ui_graph_commit_num }}
GITEA__ui__CODE_COMMENT_LINES={{ gitea_ui_code_comment_lines }}
GITEA__ui__SHOW_USER_EMAIL={{ gitea_ui_show_user_email | bool | lower }}
GITEA__ui__REACTIONS={{ gitea_ui_reaction | join(",") }}
GITEA__ui__DEFAULT_SHOW_FULL_NAME={{ gitea_ui_show_full_name | bool | lower }}
GITEA__ui__SEARCH_REPO_DESCRIPTION={{ gitea_ui_search_repo_description | bool | lower }}
GITEA__ui_0X2E_admin__USER_PAGING_NUM={{ gitea_ui_admin_user_paging_num }}
GITEA__ui_0X2E_admin__REPO_PAGING_NUM={{ gitea_ui_admin_repo_paging_num }}
GITEA__ui_0X2E_admin__NOTICE_PAGING_NUM={{ gitea_ui_admin_notice_paging_num }}
GITEA__ui_0X2E_admin__ORG_PAGING_NUM={{ gitea_ui_admin_org_paging_num }}
GITEA__ui_0X2E_user__REPO_PAGING_NUM={{ gitea_ui_user_repo_paging_num }}
GITEA__markdown__ENABLE_HARD_LINE_BREAK={{ gitea_markdown_hard_linebreak_enabled | bool | lower }}
{% if gitea_markdown_custom_url_scheme %}
GITEA__markdown__CUSTOM_URL_SCHEMES={{ gitea_markdown_custom_url_scheme | join(",") }}
{% endif %}
GITEA__markdown__FILE_EXTENSIONS={{ gitea_markdown_file_ext | join(",") }}
GITEA__server__DOMAIN={{ gitea_url | urlsplit("hostname") }}
GITEA__server__ROOT_URL={{ gitea_url }}
GITEA__server__DISABLE_SSH={{ "false" if gitea_ssh_enabled | bool else "true" }}
GITEA__server__START_SSH_SERVER=true
GITEA__server__MINIMUM_KEY_SIZE_CHECK={{ gitea_minimum_keysize_check | bool | lower }}
GITEA__server__OFFLINE_MODE={{ gitea_offline_mode | bool | lower }}
GITEA__server__LANDING_PAGE={{ gitea_landing_page }}
{% if gitea_lfs_enabled | bool %}
GITEA__server__LFS_START_SERVER=true
GITEA__server__LFS_JWT_SECRET={{ gitea_lfs_jwt_secret }}
GITEA__server__LFS_HTTP_AUTH_EXPIRY=20m
{% else %}
GITEA__server__LFS_START_SERVER=false
{% endif %}
{% for key in gitea_minimum_keysize %}
GITEA__ssh_0X2E_minimum_key_sizes__{{ key.name | upper }}={{ key.size }}
{% endfor %}
{% if gitea_db_type == "pgsql" %}
GITEA__database__DB_TYPE=postgres
GITEA__database__HOST={{ gitea_db_server }}:{{ gitea_db_port }}
GITEA__database__NAME={{ gitea_db_name }}
GITEA__database__USER={{ gitea_db_user }}
GITEA__database__PASSWD={{ gitea_db_password }}
GITEA__database__SSL_MODE={{ gitea_db_ssl_mode }}
{% elif gitea_db_type == "sqlite" %}
GITEA__database__DB_TYPE=sqlite3
GITEA__database__SQLITE_TIMEOUT=500
{% endif %}
GITEA__admin__DISABLE_REGULAR_ORG_CREATION={{ "false" if gitea_org_creation_enabled | bool else "true" }}
GITEA__admin__DEFAULT_EMAIL_NOTIFICATIONS={{ gitea_default_email_notification }}
GITEA__webhook__QUEUE_LENGTH=1000
GITEA__webhook__DELIVER_TIMEOUT=5
GITEA__webhook__ALLOWED_HOST_LIST={{ gitea_webhook_allowed_host_list | join(",") }}
GITEA__webhook__SKIP_TLS_VERIFY=false
GITEA__security__INSTALL_LOCK={{ gitea_install_lock | bool | lower }}
GITEA__security__SECRET_KEY={{ gitea_secret }}
GITEA__security__LOGIN_REMEMBER_DAYS={{ gitea_login_remember_days }}
GITEA__security__MIN_PASSWORD_LENGTH={{ gitea_password_min_lenght }}
GITEA__security__DISABLE_GIT_HOOKS={{ "false" if gitea_git_hooks_enabled | bool else "true" }}
GITEA__security__PASSWORD_COMPLEXITY={{ gitea_password_complexity | join(",") }}
GITEA__security__PASSWORD_HASH_ALGO=pbkdf2
GITEA__security__INTERNAL_TOKEN={{ gitea_token }}
GITEA__service__REGISTER_EMAIL_CONFIRM={{ gitea_registration_email_confirm | bool | lower }}
{% if gitea_registration_email_domain_whitelist is defined and gitea_registration_email_domain_whitelist %}
GITEA__service__EMAIL_DOMAIN_WHITELIST= {{ gitea_registration_email_domain_whitelist | join(",") }}
{% endif %}
GITEA__service__DISABLE_REGISTRATION={{ "false" if gitea_registration_enabled | bool else "true" }}
GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION={{ gitea_registration_allow_external_only | bool | lower }}
GITEA__service__REQUIRE_SIGNIN_VIEW=false
{% if gitea_mail_service_enabled | bool %}
GITEA__service__ENABLE_NOTIFY_MAIL=true
{% endif %}
GITEA__service__ENABLE_BASIC_AUTHENTICATION=true
GITEA__service__ALLOW_CROSS_REPOSITORY_DEPENDENCIES=true
GITEA__service__ENABLE_USER_HEATMAP=true
GITEA__service__ENABLE_TIMETRACKING=true
GITEA__service__NO_REPLY_ADDRESS={{ gitea_no_reply_address }}
GITEA__service__SHOW_REGISTRATION_BUTTON={{ gitea_registration_button_enabled | bool | lower }}
GITEA__service__SHOW_MILESTONES_DASHBOARD_PAGE=true
GITEA__service__AUTO_WATCH_NEW_REPOS={{ gitea_repository_auto_watch_on_creation | bool | lower }}
GITEA__service__AUTO_WATCH_ON_CHANGES={{ gitea_repository_auto_watch_on_change | bool | lower }}
GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE={{ gitea_default_keep_email_private | bool | lower }}
GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION={{ gitea_default_org_allow_creation | bool | lower }}
GITEA__service__DEFAULT_ORG_VISIBILITY={{ gitea_default_org_visible }}
GITEA__service__DEFAULT_ORG_MEMBER_VISIBLE={{ gitea_default_org_member_visible | bool | lower }}
GITEA__service__DEFAULT_ENABLE_DEPENDENCIES={{ gitea_default_dependencies_enabled | bool | lower }}
GITEA__service__DEFAULT_ENABLE_TIMETRACKING={{ gitea_default_timetracking_enabled | bool | lower }}
GITEA__service__DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME=true
{% if gitea_mail_service_enabled | bool %}
GITEA__mailer__ENABLED=true
{% if gitea_mail_subject_prefix is defined and gitea_mail_subject_prefix %}
GITEA__mailer__SUBJECT_PREFIX={{ gitea_mail_subject_prefix }}
{% endif %}
GITEA__mailer__FROM={{ gitea_mail_service_from }}
GITEA__mailer__PROTOCOL=sendmail
GITEA__mailer__SENDMAIL_PATH=/usr/sbin/sendmail
{% else %}
GITEA__mailer__ENABLED=false
{% endif %}
GITEA__session__PROVIDER={{ gitea_session_provider }}
GITEA__session__PROVIDER_CONFIG={{ gitea_session_provider_config }}
GITEA__session__COOKIE_NAME={{ gitea_session_cookie_name }}
GITEA__session__COOKIE_SECURE={{ gitea_session_cookie_secure | bool | lower }}
GITEA__session__ENABLE_SET_COOKIE={{ gitea_session_enable_set_cookie | bool | lower }}
GITEA__session__GC_INTERVAL_TIME={{ gitea_session_session_life_time }}
GITEA__session__SESSION_LIFE_TIME={{ gitea_session_session_life_time }}
GITEA__picture__REPOSITORY_AVATAR_FALLBACK=none
GITEA__picture__DISABLE_GRAVATAR={{ "false" if gitea_gravatar_enabled | bool else "true" }}
GITEA__picture__GRAVATAR_SOURCE={{ gitea_gravatar_source }}
GITEA__picture__ENABLE_FEDERATED_AVATAR={{ gitea_avatar_federation_enabled | bool | lower }}
{% if gitea_attachment_enabled | bool %}
GITEA__attachment__ENABLE=true
GITEA__attachment__ALLOWED_TYPES={{ gitea_attachment_allowed_types | join("|") }}
GITEA__attachment__MAX_SIZE={{ gitea_attachment_max_filesize }}
GITEA__attachment__MAX_FILES={{ gitea_attachment_max_files }}
{% else %}
GITEA__attachment__ENABLE=false
{% endif %}
GITEA__log__logger_0X2E_xorm_0X2E_MODE=
GITEA__log__logger_0X2E_router_0X2E_MODE=
#GITEA__log__MODE=file
#GITEA__log__REDIRECT_MACARON_LOG=true
#GITEA__log__MACARON=file
#GITEA__log__ROUTER_LOG_LEVEL=Info
#GITEA__log__logger_0X2E_router_0X2E_MODE=file
#{% raw %}
#GITEA__log__ACCESS_LOG_TEMPLATE={{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"
#{% endraw %}
#GITEA__log__logger_0X2E_access_0X2E_MODE=file
#GITEA__log__LEVEL={{ gitea_log_level }}
#GITEA__log__STACKTRACE_LEVEL=None
GITEA__mirror__DEFAULT_INTERVAL={{ gitea_mirror_default_interval }}
GITEA__mirror__MIN_INTERVAL={{ gitea_mirror_min_interval }}
GITEA__api__ENABLE_SWAGGER={{ gitea_api_swagger_enabled | bool | lower }}
GITEA__api__MAX_RESPONSE_ITEMS=50
GITEA__api__DEFAULT_PAGING_NUM={{ gitea_api_default_paging_num }}
GITEA__api__DEFAULT_GIT_TREES_PER_PAGE={{ gitea_api_default_git_trees_per_page }}
GITEA__api__DEFAULT_MAX_BLOB_SIZE=10485760
{% if gitea_oauth_provider_enabled | bool %}
GITEA__oauth2__ENABLE=true
GITEA__oauth2__ACCESS_TOKEN_EXPIRATION_TIME={{ gitea_access_token_expiration_time }}
GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME={{ gitea_refresh_token_expiration_time }}
GITEA__oauth2__INVALIDATE_REFRESH_TOKENS={{ gitea_invalidate_refresh_tokens | bool | lower }}
GITEA__oauth2__JWT_SIGNING_ALGORITHM={{ gitea_jwt_signing_algorithm }}
GITEA__oauth2__JWT_SECRET={{ gitea_jwt_secret }}
{% else %}
GITEA__oauth2__ENABLE=false
{% endif %}
GITEA__other__SHOW_FOOTER_BRANDING={{ gitea_footer_show_branding | bool | lower }}
GITEA__other__SHOW_FOOTER_VERSION={{ gitea_footer_show_version | bool | lower }}
GITEA__other__SHOW_FOOTER_TEMPLATE_LOAD_TIME={{ gitea_footer_show_template_load_time | bool | lower }}
GITEA__metrics__ENABLED={{ gitea_metrics_enabled | bool | lower }}
{% if gitea_metrics_token is defined and gitea_metrics_token %}
GITEA__metrics__TOKEN={{ gitea_metrics_token }}
{% endif %}