1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

reorder session variables

This commit is contained in:
L3D 2021-03-21 23:26:08 +01:00
parent fc7025755a
commit f568d8f13c
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 22 additions and 10 deletions

View file

@ -172,6 +172,15 @@ Here is a deeper insight into the variables of this gitea role. For the exact fu
| `gitea_mailer_type` | `smtp` | `[smtp, sendmail, dummy]` | | `gitea_mailer_type` | `smtp` | `[smtp, sendmail, dummy]` |
| `gitea_mailer_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[mailer]` section of the config. | | `gitea_mailer_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[mailer]` section of the config. |
### Session ([session](https://docs.gitea.io/en-us/config-cheat-sheet/#session-session))
| variable name | default value | description |
| ------------- | ------------- | ----------- |
| `gitea_session_provider` | `file` | Session engine provider |
| `gitea_session_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[session]` section of the config. |
| `gitea_enable_notify_mail`: Whether e-mail should be send to watchers of a repository when something happens. Default: `false` | `gitea_enable_notify_mail`: Whether e-mail should be send to watchers of a repository when something happens. Default: `false`

View file

@ -103,6 +103,12 @@ gitea_subject_prefix: ''
gitea_mailer_type: smtp gitea_mailer_type: smtp
gitea_mailer_extra_config: '' gitea_mailer_extra_config: ''
# Session (session)
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#session-session
gitea_session_provider: 'file'
gitea_session_extra_config: ''
#
# look and feel # look and feel
gitea_disable_gravatar: true gitea_disable_gravatar: true

View file

@ -113,7 +113,7 @@ AUTO_WATCH_NEW_REPOS = {{ gitea_auto_watch_new_repos | ternary('tru
[mailer] [mailer]
ENABLED = {{ gitea_mailer_enabled | ternary('true', 'false') }} ENABLED = {{ gitea_mailer_enabled | ternary('true', 'false') }}
HOST = {{ gitea_mailer_host }} HOST = {{ gitea_mailer_host }}
SKIP_VERIFY = {{ gitea_mailer_skip_verify }} SKIP_VERIFY = {{ gitea_mailer_skip_verify | ternary('true', 'false') }}
IS_TLS_ENABLED = {{ gitea_mailer_tls_enabled | ternary('true', 'false') }} IS_TLS_ENABLED = {{ gitea_mailer_tls_enabled | ternary('true', 'false') }}
FROM = {{ gitea_mailer_from }} FROM = {{ gitea_mailer_from }}
USER = {{ gitea_mailer_user }} USER = {{ gitea_mailer_user }}
@ -123,17 +123,14 @@ MAILER_TYPE = {{ gitea_mailer_type }}
{{ gitea_mailer_extra_config }} {{ gitea_mailer_extra_config }}
; ;
; ;
; ; -> https://docs.gitea.io/en-us/config-cheat-sheet/#session-session
[session] [session]
; Either "memory", "file", or "redis", default is "memory" PROVIDER = {{ gitea_session_provider }}
PROVIDER = file
; Provider config options
; memory: doesn't have any config yet
; file: session file path, e.g. `data/sessions`
; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
PROVIDER_CONFIG = {{ gitea_home }}/data/sessions PROVIDER_CONFIG = {{ gitea_home }}/data/sessions
{{ gitea_session_extra_config }}
;
;
;
[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.