unterstütze Logging Konfiguration

This commit is contained in:
Marius Alwan Meyer 2023-03-11 20:08:57 +01:00
parent 8c0f4cadab
commit 574dd3b423
2 changed files with 29 additions and 0 deletions

View File

@ -35,6 +35,14 @@
group: "{{ git_user.group }}" group: "{{ git_user.group }}"
mode: 0755 mode: 0755
- name: Create Logging Directory
file:
path: "/opt/gitea/log"
state: directory
owner: "{{ git_user.uid }}"
group: "{{ git_user.group }}"
mode: 0755
- name: Start Docker Daemon - name: Start Docker Daemon
systemd: systemd:
name: docker name: docker

View File

@ -121,6 +121,27 @@ GITEA__attachment__MINIO_USE_SSL={{ gitea_vars.attachment.minio_use_ssl }}
{% endif %} {% endif %}
{% endif %} {# /attachment #} {% endif %} {# /attachment #}
{% if 'log' in gitea_vars %}
{% if 'root_path' in gitea_vars['log'] %}
GITEA__ssh__ROOT_PATH={{ gitea_vars.log.root_path }}
{% endif %}
{% if 'mode' in gitea_vars['log'] %}
GITEA__ssh__MODE={{ gitea_vars.log.mode }}
{% endif %}
{% if 'level' in gitea_vars['log'] %}
GITEA__ssh__LEVEL={{ gitea_vars.log.level }}
{% endif %}
{% if 'stacktrace_level' in gitea_vars['log'] %}
GITEA__ssh__STACKTRACE_LEVEL={{ gitea_vars.log.stacktrace_level }}
{% endif %}
{% if 'enable_ssh_log' in gitea_vars['log'] %}
GITEA__ssh__ENABLE_SSH_LOG={{ gitea_vars.log.enable_ssh_log }}
{% endif %}
{% if 'enable_xorm_log' in gitea_vars['log'] %}
GITEA__ssh__ENABLE_XORM_LOG={{ gitea_vars.log.enable_xorm_log }}
{% endif %}
{% endif %} {# /logging#}
{% if 'ssh' in gitea_vars %} {% if 'ssh' in gitea_vars %}
{% if 'minimum_key_sizes' in gitea_vars['ssh'] %} {% if 'minimum_key_sizes' in gitea_vars['ssh'] %}
{% if 'ed25519' in gitea_vars['ssh']['minimum_key_sizes'] %} {% if 'ed25519' in gitea_vars['ssh']['minimum_key_sizes'] %}