service:sentry
                Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| service:sentry [04.10.2023 06:25] – viacheslav | service:sentry [30.07.2024 19:21] (текущий) – внешнее изменение 127.0.0.1 | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| + | ====== Sentry ====== | ||
| + | Установка (https:// | ||
| + | <code bash> | ||
| + | apt install git -y | ||
| + | git clone https:// | ||
| + | cd sentry | ||
| + | rm geoip/ | ||
| + | cp .env .env.custom | ||
| + | nano .env.custom | ||
| + | </ | ||
| + | |||
| + | <file bash .env.custom> | ||
| + | COMPOSE_PROJECT_NAME=sentry | ||
| + | SENTRY_EVENT_RETENTION_DAYS=60 | ||
| + | # You can either use a port number or an IP:PORT combo for SENTRY_BIND | ||
| + | # See https:// | ||
| + | SENTRY_BIND=9000 | ||
| + | # Set SENTRY_MAIL_HOST to a valid FQDN (host/ | ||
| + | # In my case I have Exchange with open relay for servers so I keep it commented out, all settings are in sentry/ | ||
| + | # SENTRY_MAIL_HOST=mail.example.com | ||
| + | SENTRY_IMAGE=getsentry/ | ||
| + | SNUBA_IMAGE=getsentry/ | ||
| + | RELAY_IMAGE=getsentry/ | ||
| + | SYMBOLICATOR_IMAGE=getsentry/ | ||
| + | VROOM_IMAGE=getsentry/ | ||
| + | WAL2JSON_VERSION=latest | ||
| + | HEALTHCHECK_INTERVAL=30s | ||
| + | HEALTHCHECK_TIMEOUT=1m30s | ||
| + | HEALTHCHECK_RETRIES=10 | ||
| + | # Disable sending information | ||
| + | REPORT_SELF_HOSTED_ISSUES=0 | ||
| + | # Disable communication with a remote beacon server | ||
| + | SENTRY_BEACON = False | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | <file yaml sentry/ | ||
| + | ############### | ||
| + | # Mail Server # | ||
| + | ############### | ||
| + | # mail.backend: | ||
| + | mail.host: ' | ||
| + | |||
| + | # The email address to send on behalf of | ||
| + | # mail.from: ' | ||
| + | mail.from: ' | ||
| + | |||
| + | # The mailing list namespace for emails sent by this Sentry server. | ||
| + | # This should be a domain you own (often the same domain as the domain | ||
| + | # part of the `mail.from` configuration parameter value) or `localhost`. | ||
| + | mail.list-namespace: | ||
| + | |||
| + | ################### | ||
| + | # System Settings # | ||
| + | ################### | ||
| + | |||
| + | # For reverse-proxy (https:// | ||
| + | system.url-prefix: | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | Comment out strings in the Mail section: | ||
| + | <file yaml sentry/ | ||
| + | ######## | ||
| + | # Mail # | ||
| + | ######## | ||
| + | # | ||
| + | # | ||
| + | </ | ||
| + | |||
| + | GeoIP database (crontab): | ||
| + | <code bash> | ||
| + | # Download GeoIP database | ||
| + | 30 7 * * 1,4 wget https:// | ||
| + | </ | ||
| + | |||
| + | Start Sentry: | ||
| + | <code bash> | ||
| + | sudo ./ | ||
| + | docker-compose --env-file .env.custom up -d | ||
| + | </ | ||
| + | |||
| + | ===== Интеграция с Gitlab ===== | ||
| + | https:// | ||
| + | |||
| + | После интеграции объекты в Гитлабе из Сентри будут от той учётки, | ||
| + | |||
| + | <color # | ||
| + | GitLab -> Admin area -> Settings -> Network -> Outbound requests -> Allow requests to the local network from webhooks and integrations\\ | ||
| + | https:// | ||
| + | https:// | ||
