mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Merge branch 'version'
This commit is contained in:
commit
fe43c45e1e
4 changed files with 49 additions and 52 deletions
|
@ -110,7 +110,7 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we
|
||||||
* `gitea_db_name`: Database name
|
* `gitea_db_name`: Database name
|
||||||
* `gitea_db_user`: Database username
|
* `gitea_db_user`: Database username
|
||||||
* `gitea_db_password`: Database password
|
* `gitea_db_password`: Database password
|
||||||
* `gitea_db_ssl`: Use SSL ? (postgres only!). Can be `required`, `disable`, `verify-full`
|
* `gitea_db_ssl`: Use SSL ? (postgres only!). Can be `require`, `disable`, `verify-ca` or `verify-full`
|
||||||
* `gitea_db_path`: DB path, if you use `sqlite3`. The default is good enough to work though.
|
* `gitea_db_path`: DB path, if you use `sqlite3`. The default is good enough to work though.
|
||||||
|
|
||||||
### Mailer configuration
|
### Mailer configuration
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
gitea_version: "1.13.2"
|
gitea_version: "1.13.4"
|
||||||
gitea_version_check: true
|
gitea_version_check: true
|
||||||
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_arch }}"
|
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_arch }}"
|
||||||
gitea_gpg_key: "7C9E68152594688862D62AF62D9AE806EC1592E2"
|
gitea_gpg_key: "7C9E68152594688862D62AF62D9AE806EC1592E2"
|
||||||
|
@ -85,6 +85,8 @@ gitea_repo_indexer_exclude: ""
|
||||||
gitea_repo_exclude_vendored: true
|
gitea_repo_exclude_vendored: true
|
||||||
gitea_repo_indexer_max_file_size: 1048576
|
gitea_repo_indexer_max_file_size: 1048576
|
||||||
|
|
||||||
|
gitea_log_level: Info
|
||||||
|
|
||||||
gitea_extra_config: ""
|
gitea_extra_config: ""
|
||||||
|
|
||||||
gitea_backup_on_upgrade: false
|
gitea_backup_on_upgrade: false
|
||||||
|
|
|
@ -1,24 +1,25 @@
|
||||||
ansible==2.9.8
|
ansible==2.10.7
|
||||||
ansible-lint==4.2.0
|
ansible-lint==5.0.0
|
||||||
anyconfig==0.9.7
|
anyconfig==0.10.0
|
||||||
|
atomicwrites==1.4.0
|
||||||
|
attrs==20.3.0
|
||||||
|
autopep8==1.5.5
|
||||||
|
bcrypt==3.2.0
|
||||||
arrow==0.15.5
|
arrow==0.15.5
|
||||||
asn1crypto==0.24.0
|
asn1crypto==0.24.0
|
||||||
atomicwrites==1.3.0
|
|
||||||
attrs==19.1.0
|
|
||||||
autopep8==1.5.1
|
|
||||||
bcrypt==3.1.7
|
|
||||||
binaryornot==0.4.4
|
binaryornot==0.4.4
|
||||||
Cerberus==1.3.2
|
Cerberus==1.3.2
|
||||||
certifi==2020.4.5.1
|
certifi==2020.12.5
|
||||||
cffi==1.14.0
|
cffi==1.14.4
|
||||||
chardet==3.0.4
|
chardet==4.0.0
|
||||||
click==7.1.1
|
click==7.1.2
|
||||||
click-completion==0.5.2
|
click-completion==0.5.2
|
||||||
click-help-colors==0.8
|
click-help-colors==0.9
|
||||||
colorama==0.4.3
|
colorama==0.4.4
|
||||||
cookiecutter==1.7.0
|
cookiecutter==1.7.2
|
||||||
|
cryptography==3.3.1
|
||||||
cryptography==3.3.2
|
cryptography==3.3.2
|
||||||
docker==4.2.0
|
docker==4.4.1
|
||||||
docker-pycreds==0.4.0
|
docker-pycreds==0.4.0
|
||||||
entrypoints==0.3
|
entrypoints==0.3
|
||||||
fasteners==0.15
|
fasteners==0.15
|
||||||
|
@ -27,16 +28,16 @@ future==0.18.2
|
||||||
git-url-parse==1.2.1
|
git-url-parse==1.2.1
|
||||||
idna==2.9
|
idna==2.9
|
||||||
importlib-metadata==1.6.0
|
importlib-metadata==1.6.0
|
||||||
Jinja2==2.11.2
|
Jinja2==2.11.3
|
||||||
jinja2-time==0.2.0
|
jinja2-time==0.2.0
|
||||||
MarkupSafe==1.1.1
|
MarkupSafe==1.1.1
|
||||||
mccabe==0.6.1
|
mccabe==0.6.1
|
||||||
molecule==3.0.3
|
molecule==3.0.3
|
||||||
monotonic==1.5
|
monotonic==1.5
|
||||||
more-itertools==6.0.0
|
more-itertools==8.6.0
|
||||||
paramiko==2.7.1
|
paramiko==2.7.2
|
||||||
pathspec==0.8.0
|
pathspec==0.8.1
|
||||||
pbr==5.1.1
|
pbr==5.5.1
|
||||||
pexpect==4.8.0
|
pexpect==4.8.0
|
||||||
pi==0.1.2
|
pi==0.1.2
|
||||||
pluggy==0.13.1
|
pluggy==0.13.1
|
||||||
|
@ -60,10 +61,10 @@ sh==1.12.14
|
||||||
shellingham==1.3.2
|
shellingham==1.3.2
|
||||||
six==1.14.0
|
six==1.14.0
|
||||||
tabulate==0.8.7
|
tabulate==0.8.7
|
||||||
testinfra==5.0.0
|
testinfra==6.0.0
|
||||||
tree-format==0.1.2
|
tree-format==0.1.2
|
||||||
urllib3==1.25.8
|
urllib3==1.26.3
|
||||||
websocket-client==0.57.0
|
websocket-client==0.57.0
|
||||||
whichcraft==0.6.1
|
whichcraft==0.6.1
|
||||||
yamllint==1.22.1
|
yamllint==1.26.0
|
||||||
zipp==3.1.0
|
zipp==3.4.0
|
||||||
|
|
|
@ -15,17 +15,17 @@ RUN_MODE = prod
|
||||||
[repository]
|
[repository]
|
||||||
ROOT = {{ gitea_repository_root }}
|
ROOT = {{ gitea_repository_root }}
|
||||||
; Force every new repository to be private
|
; Force every new repository to be private
|
||||||
FORCE_PRIVATE = {{ gitea_force_private }}
|
FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }}
|
||||||
; Global limit of repositories per user, applied at creation time. -1 means no limit
|
; Global limit of repositories per user, applied at creation time. -1 means no limit
|
||||||
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
|
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
|
||||||
; Mirror sync queue length, increase if mirror syncing starts hanging
|
; Mirror sync queue length, increase if mirror syncing starts hanging
|
||||||
MIRROR_QUEUE_LENGTH = 1000
|
MIRROR_QUEUE_LENGTH = 1000
|
||||||
; Disable the ability to interact with repositories using the HTTP protocol
|
; Disable the ability to interact with repositories using the HTTP protocol
|
||||||
DISABLE_HTTP_GIT = {{ gitea_disable_http_git }}
|
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
|
||||||
|
|
||||||
[ui]
|
[ui]
|
||||||
; Whether the email of the user should be shown in the Explore Users page
|
; Whether the email of the user should be shown in the Explore Users page
|
||||||
SHOW_USER_EMAIL = {{ gitea_show_user_email }}
|
SHOW_USER_EMAIL = {{ gitea_show_user_email | ternary('true', 'false') }}
|
||||||
THEMES = {{ gitea_themes }}
|
THEMES = {{ gitea_themes }}
|
||||||
DEFAULT_THEME = {{ gitea_theme_default }}
|
DEFAULT_THEME = {{ gitea_theme_default }}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ HTTP_PORT = {{ gitea_http_port }}
|
||||||
; Disable SSH feature when not available
|
; Disable SSH feature when not available
|
||||||
DISABLE_SSH = false
|
DISABLE_SSH = false
|
||||||
; Whether to use the builtin SSH server or not.
|
; Whether to use the builtin SSH server or not.
|
||||||
START_SSH_SERVER = {{ gitea_start_ssh }}
|
START_SSH_SERVER = {{ gitea_start_ssh | ternary('true', 'false') }}
|
||||||
; Domain name to be exposed in clone URL
|
; Domain name to be exposed in clone URL
|
||||||
SSH_DOMAIN = {{ gitea_ssh_domain }}
|
SSH_DOMAIN = {{ gitea_ssh_domain }}
|
||||||
; The network interface the builtin SSH server should listen on
|
; The network interface the builtin SSH server should listen on
|
||||||
|
@ -50,7 +50,7 @@ SSH_PORT = {{ gitea_ssh_port }}
|
||||||
; The port number the builtin SSH server should listen on
|
; The port number the builtin SSH server should listen on
|
||||||
SSH_LISTEN_PORT = %(SSH_PORT)s
|
SSH_LISTEN_PORT = %(SSH_PORT)s
|
||||||
; Disable CDN even in "prod" mode
|
; Disable CDN even in "prod" mode
|
||||||
OFFLINE_MODE = {{ gitea_offline_mode }}
|
OFFLINE_MODE = {{ gitea_offline_mode | ternary('true', 'false') }}
|
||||||
; Default path for App data
|
; Default path for App data
|
||||||
APP_DATA_PATH = {{ gitea_home }}/data
|
APP_DATA_PATH = {{ gitea_home }}/data
|
||||||
{% if gitea_lfs_server_enabled | bool -%}
|
{% if gitea_lfs_server_enabled | bool -%}
|
||||||
|
@ -70,7 +70,7 @@ NAME = {{ gitea_db_name }}
|
||||||
USER = {{ gitea_db_user }}
|
USER = {{ gitea_db_user }}
|
||||||
; Use PASSWD = `your password` for quoting if you use special characters in the password.
|
; Use PASSWD = `your password` for quoting if you use special characters in the password.
|
||||||
PASSWD = {{ gitea_db_password }}
|
PASSWD = {{ gitea_db_password }}
|
||||||
; For Postgres, either "disable" (default), "require", or "verify-full"
|
; For Postgres, either "disable" (default), "require", "verify-ca" or "verify-full"
|
||||||
; For MySQL, either "false" (default), "true", or "skip-verify"
|
; For MySQL, either "false" (default), "true", or "skip-verify"
|
||||||
SSL_MODE = {{ gitea_db_ssl }}
|
SSL_MODE = {{ gitea_db_ssl }}
|
||||||
; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
|
; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
|
||||||
|
@ -100,15 +100,15 @@ SECRET_KEY = {{ gitea_secret_key }}
|
||||||
INTERNAL_TOKEN = {{ gitea_internal_token }}
|
INTERNAL_TOKEN = {{ gitea_internal_token }}
|
||||||
; How long to remember that an user is logged in before requiring relogin (in days)
|
; How long to remember that an user is logged in before requiring relogin (in days)
|
||||||
LOGIN_REMEMBER_DAYS = 7
|
LOGIN_REMEMBER_DAYS = 7
|
||||||
DISABLE_GIT_HOOKS = {{ gitea_disable_git_hooks }}
|
DISABLE_GIT_HOOKS = {{ gitea_disable_git_hooks | ternary('true', 'false') }}
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
; Disallow registration, only allow admins to create accounts.
|
; Disallow registration, only allow admins to create accounts.
|
||||||
DISABLE_REGISTRATION = {{ gitea_disable_registration }}
|
DISABLE_REGISTRATION = {{ gitea_disable_registration }}
|
||||||
; User must sign in to view anything.
|
; User must sign in to view anything.
|
||||||
REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin }}
|
REQUIRE_SIGNIN_VIEW = {{ gitea_require_signin | ternary('true', 'false') }}
|
||||||
; Enable captcha validation for registration
|
; Enable captcha validation for registration
|
||||||
ENABLE_CAPTCHA = {{ gitea_enable_captcha }}
|
ENABLE_CAPTCHA = {{ gitea_enable_captcha | ternary('true', 'false') }}
|
||||||
; Type of captcha you want to use. Options: image, recaptcha
|
; Type of captcha you want to use. Options: image, recaptcha
|
||||||
CAPTCHA_TYPE = image
|
CAPTCHA_TYPE = image
|
||||||
; Enable recaptcha to use Google's recaptcha service
|
; Enable recaptcha to use Google's recaptcha service
|
||||||
|
@ -116,21 +116,17 @@ CAPTCHA_TYPE = image
|
||||||
RECAPTCHA_SECRET =
|
RECAPTCHA_SECRET =
|
||||||
RECAPTCHA_SITEKEY =
|
RECAPTCHA_SITEKEY =
|
||||||
; Show Registration button
|
; Show Registration button
|
||||||
SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button }}
|
SHOW_REGISTRATION_BUTTON = {{ gitea_show_registration_button | ternary('true', 'false') }}
|
||||||
ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration }}
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_only_allow_external_registration | ternary('true', 'false') }}
|
||||||
ENABLE_NOTIFY_MAIL = {{ gitea_enable_notify_mail }}
|
ENABLE_NOTIFY_MAIL = {{ gitea_enable_notify_mail | ternary('true', 'false') }}
|
||||||
|
|
||||||
[mailer]
|
[mailer]
|
||||||
ENABLED = {{ gitea_mailer_enabled }}
|
ENABLED = {{ gitea_mailer_enabled | ternary('true', 'false') }}
|
||||||
; Mail server
|
; Mail server
|
||||||
; Gmail: smtp.gmail.com:587
|
; Gmail: smtp.gmail.com:587
|
||||||
; QQ: smtp.qq.com:465
|
; 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.
|
; 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 = {{ gitea_mailer_host }}
|
HOST = {{ gitea_mailer_host }}
|
||||||
; Disable HELO operation when hostnames are different.
|
|
||||||
DISABLE_HELO =
|
|
||||||
; Custom hostname for HELO operation, if no value is provided, one is retrieved from system.
|
|
||||||
HELO_HOSTNAME =
|
|
||||||
; Do not verify the certificate of the server. Only use this for self-signed certificates
|
; Do not verify the certificate of the server. Only use this for self-signed certificates
|
||||||
SKIP_VERIFY = {{ gitea_mailer_skip_verify }}
|
SKIP_VERIFY = {{ gitea_mailer_skip_verify }}
|
||||||
; Use client certificate
|
; Use client certificate
|
||||||
|
@ -138,7 +134,7 @@ USE_CERTIFICATE = false
|
||||||
CERT_FILE = {{ gitea_home }}/custom/mailer/cert.pem
|
CERT_FILE = {{ gitea_home }}/custom/mailer/cert.pem
|
||||||
KEY_FILE = {{ gitea_home }}/custom/mailer/key.pem
|
KEY_FILE = {{ gitea_home }}/custom/mailer/key.pem
|
||||||
; Should SMTP connection use TLS
|
; Should SMTP connection use TLS
|
||||||
IS_TLS_ENABLED = {{ gitea_mailer_tls_enabled }}
|
IS_TLS_ENABLED = {{ gitea_mailer_tls_enabled | ternary('true', 'false') }}
|
||||||
; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
|
; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
|
||||||
FROM = {{ gitea_mailer_from }}
|
FROM = {{ gitea_mailer_from }}
|
||||||
; Mailer user name and password
|
; Mailer user name and password
|
||||||
|
@ -151,8 +147,6 @@ SEND_AS_PLAIN_TEXT = false
|
||||||
MAILER_TYPE = {{ gitea_mailer_type }}
|
MAILER_TYPE = {{ gitea_mailer_type }}
|
||||||
; Specify an alternative sendmail binary
|
; Specify an alternative sendmail binary
|
||||||
SENDMAIL_PATH = sendmail
|
SENDMAIL_PATH = sendmail
|
||||||
; Specify any extra sendmail arguments
|
|
||||||
SENDMAIL_ARGS =
|
|
||||||
|
|
||||||
[session]
|
[session]
|
||||||
; Either "memory", "file", or "redis", default is "memory"
|
; Either "memory", "file", or "redis", default is "memory"
|
||||||
|
@ -167,7 +161,7 @@ PROVIDER_CONFIG = {{ gitea_home }}/data/sessions
|
||||||
[picture]
|
[picture]
|
||||||
AVATAR_UPLOAD_PATH = {{ gitea_home }}/data/avatars
|
AVATAR_UPLOAD_PATH = {{ gitea_home }}/data/avatars
|
||||||
; This value will always be true in offline mode.
|
; This value will always be true in offline mode.
|
||||||
DISABLE_GRAVATAR = {{ gitea_disable_gravatar }}
|
DISABLE_GRAVATAR = {{ gitea_disable_gravatar | ternary('true', 'false') }}
|
||||||
|
|
||||||
[attachment]
|
[attachment]
|
||||||
; Whether attachments are enabled. Defaults to `true`
|
; Whether attachments are enabled. Defaults to `true`
|
||||||
|
@ -183,7 +177,7 @@ MODE = file
|
||||||
; Buffer length of the channel, keep it as it is if you don't know what it is.
|
; Buffer length of the channel, keep it as it is if you don't know what it is.
|
||||||
BUFFER_LEN = 10000
|
BUFFER_LEN = 10000
|
||||||
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
|
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
|
||||||
LEVEL = Info
|
LEVEL = {{ gitea_log_level }}
|
||||||
REDIRECT_MACARON_LOG = false
|
REDIRECT_MACARON_LOG = false
|
||||||
|
|
||||||
[oauth2]
|
[oauth2]
|
||||||
|
|
Loading…
Reference in a new issue