feat: switch crash reporting from BugSink to Rustrak

This commit is contained in:
edde746
2026-03-03 09:19:25 +01:00
parent 7001032e51
commit cd36e3acb0
3 changed files with 44 additions and 11 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ void main() async {
await SentryFlutter.init(
(options) {
options.dsn = 'https://7aa61595518d4770a4d5ea412982dcd7@bugs.plezy.app/1';
options.dsn = 'https://642fadfae16a4308a73ae2db1181654a@bugs.plezy.app/1';
options.sendDefaultPii = true;
options.tracesSampleRate = 0;
options.anrEnabled = true;
+7 -2
View File
@@ -3,7 +3,12 @@ ice.plezy.app {
}
bugs.plezy.app {
reverse_proxy bugsink:8000 {
header_up X-Real-IP {remote_host}
handle /api/* {
reverse_proxy rustrak:8080 {
header_up X-Real-IP {remote_host}
}
}
handle {
reverse_proxy rustrak-ui:3000
}
}
+36 -8
View File
@@ -18,19 +18,47 @@ services:
- caddy_data:/data
- caddy_config:/config
bugsink:
image: bugsink/bugsink
rustrak-db:
image: postgres:16-alpine
restart: unless-stopped
env_file: .env
environment:
SECRET_KEY: ${BUGSINK_SECRET_KEY}
CREATE_SUPERUSER: ${BUGSINK_SUPERUSER}
PORT: 8000
BEHIND_HTTPS_PROXY: "True"
POSTGRES_USER: ${RUSTRAK_POSTGRES_USER}
POSTGRES_PASSWORD: ${RUSTRAK_POSTGRES_PASSWORD}
POSTGRES_DB: ${RUSTRAK_POSTGRES_DB}
volumes:
- rustrak_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${RUSTRAK_POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5
rustrak:
image: abians7/rustrak-server:latest
restart: unless-stopped
depends_on:
rustrak-db:
condition: service_healthy
environment:
DATABASE_URL: postgres://${RUSTRAK_POSTGRES_USER}:${RUSTRAK_POSTGRES_PASSWORD}@rustrak-db/${RUSTRAK_POSTGRES_DB}
RUSTRAK_LOG: ${RUSTRAK_LOG}
SESSION_SECRET: ${RUSTRAK_SESSION_SECRET}
CREATE_SUPERUSER: ${RUSTRAK_SUPERUSER}
expose:
- "8000"
- "8080"
rustrak-ui:
image: abians7/rustrak-ui:latest
restart: unless-stopped
depends_on:
- rustrak
environment:
RUSTRAK_API_URL: http://rustrak:8080
expose:
- "3000"
volumes:
logs:
caddy_data:
caddy_config:
rustrak_data: