add ability for custom footer links
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-02-16 16:21:37 +01:00
parent 152e84720f
commit add3831913
3 changed files with 18 additions and 8 deletions

View File

@ -12,6 +12,7 @@ gitea_base_dir: "/opt/gitea"
gitea_bin_dir: "{{ gitea_base_dir }}/bin"
gitea_config_dir: "{{ gitea_base_dir }}/custom/conf"
gitea_data_dir: "{{ gitea_base_dir }}/data"
gitea_template_dir: "{{ gitea_base_dir }}/custom/templates"
gitea_selinux_fcontext:
- target: "{{ gitea_log_dir }}(/.*)?"

View File

@ -18,6 +18,7 @@
- "{{ gitea_config_dir }}"
- "{{ gitea_data_dir }}"
- "{{ gitea_log_dir }}"
- "{{ gitea_template_dir }}/custom"
become: True
become_user: "{{ gitea_user }}"
@ -38,13 +39,21 @@
become_user: "{{ gitea_user }}"
when: not gitea_installed.stat.exists or gitea_current.stdout is version_compare(gitea_version, operator='<', strict=True)
- name: Copy config file
template:
src: "custom/conf/app.ini.j2"
dest: "{{ gitea_config_dir }}/app.ini"
mode: 0600
notify: __gitea_restart
register: add_config
- block:
- name: Copy config file
template:
src: "custom/conf/app.ini.j2"
dest: "{{ gitea_config_dir }}/app.ini"
mode: 0600
notify: __gitea_restart
register: add_config
- name: Copy template files
template:
src: "templates/custom/templates/custom/extra_links_footer.tmpl.j2"
dest: "{{ gitea_template_dir }}/custom/extra_links_footer.tmpl"
mode: 0600
notify: __gitea_restart
become: True
become_user: "{{ gitea_user }}"

View File

@ -182,7 +182,7 @@ ENABLED = false
[picture]
AVATAR_UPLOAD_PATH = {{ gitea_data_dir }}/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = {{ gitea_data_dir }}/repo-avatars
REPOSITORY_AVATAR_FALLBACK = random
REPOSITORY_AVATAR_FALLBACK = none
DISABLE_GRAVATAR = {{ 'false' if gitea_gravatar_enabled | bool else 'true' }}
GRAVATAR_SOURCE = {{ gitea_gravatar_source }}
ENABLE_FEDERATED_AVATAR = {{ gitea_avatar_federation_enabled | bool }}