mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-24 20:11:35 +01:00
Change the log managment (also for fail2ban support)
This commit is contained in:
parent
c734163ed7
commit
9e2c149643
25
conf/app.ini
25
conf/app.ini
@ -2,6 +2,7 @@
|
|||||||
APP_NAME = Gitea
|
APP_NAME = Gitea
|
||||||
RUN_USER = __APP__
|
RUN_USER = __APP__
|
||||||
RUN_MODE = prod
|
RUN_MODE = prod
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
DB_TYPE = mysql
|
DB_TYPE = mysql
|
||||||
HOST = 127.0.0.1:3306
|
HOST = 127.0.0.1:3306
|
||||||
@ -10,9 +11,12 @@ USER = __DB_USER__
|
|||||||
PASSWD = __DB_PASSWORD__
|
PASSWD = __DB_PASSWORD__
|
||||||
SSL_MODE = disable
|
SSL_MODE = disable
|
||||||
PATH = data/gitea.db
|
PATH = data/gitea.db
|
||||||
|
LOG_SQL = false
|
||||||
|
|
||||||
[repository]
|
[repository]
|
||||||
ROOT = __REPOS_PATH__
|
ROOT = __REPOS_PATH__
|
||||||
FORCE_PRIVATE = false
|
FORCE_PRIVATE = false
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
DOMAIN = __DOMAIN__
|
DOMAIN = __DOMAIN__
|
||||||
HTTP_PORT = __PORT__
|
HTTP_PORT = __PORT__
|
||||||
@ -22,11 +26,13 @@ SSH_PORT = __SSH_PORT_
|
|||||||
OFFLINE_MODE = false
|
OFFLINE_MODE = false
|
||||||
APP_DATA_PATH = __DATA_PATH__
|
APP_DATA_PATH = __DATA_PATH__
|
||||||
LANDING_PAGE = explore
|
LANDING_PAGE = explore
|
||||||
|
|
||||||
[mailer]
|
[mailer]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
HOST = 127.0.0.1:25
|
HOST = 127.0.0.1:25
|
||||||
FROM = "Gitea" <gitea-noreply@__DOMAIN__>
|
FROM = "Gitea" <gitea-noreply@__DOMAIN__>
|
||||||
SKIP_VERIFY = true
|
SKIP_VERIFY = true
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
REGISTER_EMAIL_CONFIRM = false
|
REGISTER_EMAIL_CONFIRM = false
|
||||||
ENABLE_NOTIFY_MAIL = true
|
ENABLE_NOTIFY_MAIL = true
|
||||||
@ -35,16 +41,33 @@ ENABLE_CAPTCHA = false
|
|||||||
REQUIRE_SIGNIN_VIEW = false
|
REQUIRE_SIGNIN_VIEW = false
|
||||||
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
||||||
ENABLE_REVERSE_PROXY_AUTO_REGISTERATION = false
|
ENABLE_REVERSE_PROXY_AUTO_REGISTERATION = false
|
||||||
|
|
||||||
[picture]
|
[picture]
|
||||||
AVATAR_UPLOAD_PATH = __DATA_PATH__/avatars
|
AVATAR_UPLOAD_PATH = __DATA_PATH__/avatars
|
||||||
|
|
||||||
[attachment]
|
[attachment]
|
||||||
PATH = __DATA_PATH__/attachments
|
PATH = __DATA_PATH__/attachments
|
||||||
|
|
||||||
[session]
|
[session]
|
||||||
PROVIDER = memory
|
PROVIDER = memory
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
MODE = file
|
MODE = file
|
||||||
LEVEL = Warn
|
LEVEL = Info
|
||||||
ROOT_PATH = /var/log/__APP__
|
ROOT_PATH = /var/log/__APP__
|
||||||
|
|
||||||
|
REDIRECT_MACARON_LOG= true
|
||||||
|
MACARON = file
|
||||||
|
|
||||||
|
ROUTER_LOG_LEVEL = Warn
|
||||||
|
ROUTER = file
|
||||||
|
|
||||||
|
ENABLE_ACCESS_LOG = Warn
|
||||||
|
ACCESS = file
|
||||||
|
|
||||||
|
ENABLE_XORM_LOG = Warn
|
||||||
|
XORM = file
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
INSTALL_LOCK = true
|
INSTALL_LOCK = true
|
||||||
SECRET_KEY = __KEY__
|
SECRET_KEY = __KEY__
|
||||||
|
@ -51,7 +51,7 @@ config_nginx
|
|||||||
config_gitea
|
config_gitea
|
||||||
|
|
||||||
# RELOAD services
|
# RELOAD services
|
||||||
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -a restart -t 5
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -a restart
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
||||||
|
@ -117,7 +117,7 @@ ynh_use_logrotate "/var/log/$app"
|
|||||||
ynh_app_setting_set $app upstream_version $upstream_version
|
ynh_app_setting_set $app upstream_version $upstream_version
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -t 5
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
||||||
|
@ -70,5 +70,5 @@ yunohost service add "$app" --log /var/log/"$app"/"$app".log
|
|||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
systemctl reload nginx.service
|
systemctl reload nginx.service
|
||||||
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -t 5
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -178,7 +178,7 @@ ynh_app_setting_set $app upstream_version $(ynh_app_upstream_version)
|
|||||||
set_access_settings
|
set_access_settings
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -t 5
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
||||||
|
Loading…
Reference in New Issue
Block a user