diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api index c475d2e..35984ba 100644 --- a/docker/Dockerfile.api +++ b/docker/Dockerfile.api @@ -1,8 +1,8 @@ FROM php:8.3-fpm-alpine -RUN apk add --no-cache linux-headers \ - && docker-php-ext-install pcntl sockets || \ - docker-php-ext-install pcntl +RUN apk add --no-cache linux-headers curl-dev \ + && docker-php-ext-install curl pcntl sockets || \ + docker-php-ext-install curl pcntl COPY --from=composer:2 /usr/bin/composer /usr/bin/composer diff --git a/docker/Dockerfile.php b/docker/Dockerfile.php index 5571371..ab807ee 100644 --- a/docker/Dockerfile.php +++ b/docker/Dockerfile.php @@ -1,10 +1,9 @@ FROM php:8.3-cli-alpine -RUN apk add --no-cache linux-headers git +RUN apk add --no-cache linux-headers curl-dev git -RUN apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.20/main linux-headers \ - && docker-php-ext-install pcntl sockets || \ - docker-php-ext-install pcntl +RUN docker-php-ext-install curl pcntl sockets 2>/dev/null || \ + docker-php-ext-install curl pcntl COPY --from=composer:2 /usr/bin/composer /usr/bin/composer diff --git a/public/index.html b/public/index.html index b799859..ef55f51 100644 --- a/public/index.html +++ b/public/index.html @@ -30,22 +30,49 @@ body { font-size: .875rem; } .toast-container { z-index: 1060; } #detailModal .modal-body { max-height: 70vh; overflow-y: auto; } pre.raw-line { background: var(--bs-tertiary-bg); padding: .75rem; border-radius: .375rem; font-size: .8rem; white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow-y: auto; } +.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; } +.login-card { max-width: 420px; width: 100%; } +.login-container .navbar-brand { font-size: 1.5rem; } +.login-footer { position: fixed; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--bs-secondary-color); } @media (max-width: 768px) { .sidebar { display: none; } .main { margin-left: 0; } } +
+
+
+ +

Log analysis & alerting system

+
+
+
+ +
Sign in required
+

Authenticate with your Jakach account to access the system.

+ + Log in using Jakach Login + +
+
+ +
+
+ +
-
+
System Info
Health
checking...
+
Auth Server
auth.jakach.ch
+
Logged in as
DB Path
/app/data/logging.db
Worker
php bin/consume
-
-
Quick Reference

File sources — path to a log file on the worker container

-

TCP/UDP sourcestcp://0.0.0.0:9514 or udp://0.0.0.0:9514

-

Rules — use PHP regex patterns, e.g. /error/i

+

TCP/UDP sourcestcp://0.0.0.0:9514

+

Rules — PHP regex patterns, e.g. /error/i

+
+
+
+
+
+
Security
+
+
+ +

Only these Jakach user tokens can access this system. Leave empty to allow any authenticated Jakach user.

+ +
+ + +
+
+
+
How to get your user token
+
+
    +
  1. Log in at auth.jakach.ch
  2. +
  3. Your user_token is shown in your profile
  4. +
  5. Paste it above to grant access
  6. +
@@ -208,6 +258,7 @@ pre.raw-line { background: var(--bs-tertiary-bg); padding: .75rem; border-radius
+