Compare commits

..

10 Commits
1.3.4 ... main

Author SHA1 Message Date
Tamer
286d892703
Merge pull request #49 from fhservinga/main
make logo configurable with env vars
2025-01-13 10:31:21 +01:00
fhservinga
a5bd259466
Merge branch 'hybula:main' into main 2025-01-10 17:16:47 +01:00
Fabian Hufenreuter
c4bfe0624e
make logo configurable with env vars 2025-01-10 17:14:27 +01:00
Tamer
f87a19fa1e
Merge pull request #48 from fhservinga/main
Update Dockerfile for php-fpm and config.php
2025-01-10 13:39:39 +01:00
Fabian Hufenreuter
cbb1a95b64
change $_ENV to getenv 2025-01-10 13:24:08 +01:00
Fabian Hufenreuter
05ea20c332
add use of production php.ini 2025-01-10 13:23:29 +01:00
Fabian Hufenreuter
10c9e545d0
unloy use major.minor for php fpm 2025-01-10 13:22:30 +01:00
Tamer
b453e719f7
Update README.md 2025-01-04 22:13:13 +01:00
Tamer
4a95d3854f
Merge pull request #46 from clertes/main
Docker images vulnerable (CVE-2024-4577)
2024-12-20 09:31:21 +01:00
Christian
91b36725a3
Update Dockerfile
Upgraded PHP-FPM container image to PHP version 8.4.1
2024-12-19 17:48:24 +01:00
4 changed files with 16 additions and 11 deletions

View File

@ -17,7 +17,7 @@ made user-friendly for everyone to use. It allows you to execute network related
- Dark/light/auto mode theme.
### Requirements
- Any Linux distribution, this has been tested on RHEL 8 + 9.
- Any Linux distribution, this has been tested on RHEL 8 + 9, for NetBSD users see [#47](https://github.com/hybula/lookingglass/issues/47).
- PHP 7.1 or higher, PHP 8 preferred.
- IPv6 connectivity if you want to use the v6 equivalents.
- Root access.

View File

@ -22,6 +22,9 @@ services:
LOCATION: Location
FACILITY: Facility
FACILITY_URL: http://localhost/
LOGO_URL: https://github.com/hybula/lookingglass/
LOGO: '<h2 style="color: #000000;">Company Looking Glass</h2>'
LOGO_DARK: '<h2 style="color: #ffffff;">Company Looking Glass</h2>'
IPV4_ADDRESS: 127.0.0.1
IPV6_ADDRESS: ::1
MAPS_QUERY: Amsterdam

View File

@ -1,9 +1,11 @@
FROM php:8.1-fpm-bullseye
FROM php:8.4-fpm-bullseye
RUN apt-get update && \
apt-get --no-install-recommends -y install iputils-ping mtr traceroute iproute2 && \
rm -rf /var/lib/apt/lists/*
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
WORKDIR /var/www/html
COPY --chown=www-data:www-data . .

View File

@ -5,11 +5,11 @@ use Hybula\LookingGlass;
const LG_TITLE = 'Looking Glass';
// Define a logo, this can be HTML too, see the other example for an image;
const LG_LOGO = '<h2 style="color: #000000;">Company Looking Glass</h2>';
const LG_LOGO_DARK = '<h2 style="color: #ffffff;">Company Looking Glass</h2>';
// Define the URL where the logo points to;
const LG_LOGO_URL = 'https://github.com/hybula/lookingglass/';
define('LG_LOGO', getenv('LOGO'));
define('LG_LOGO_DARK', getenv('LOGO_DARK'));
// Define the URL where the logo points to;
define('LG_LOGO_URL', getenv('LOGO_URL'));
// Theme mode;
const LG_THEME = 'auto';
@ -23,11 +23,11 @@ const LG_CSS_OVERRIDES = false;
const LG_CUSTOM_HEAD = false;
// Enable or disable blocks/parts of the LG, pass these environment variables with any value to disable them;
define('LG_BLOCK_NETWORK', !isset($_ENV['DISABLE_BLOCK_NETWORK']));
define('LG_BLOCK_LOOKINGGLASS', !isset($_ENV['DISABLE_BLOCK_LOOKINGGLASS']));
define('LG_BLOCK_SPEEDTEST', !isset($_ENV['DISABLE_BLOCK_SPEEDTEST']));
define('LG_BLOCK_NETWORK', !getenv('DISABLE_BLOCK_NETWORK'));
define('LG_BLOCK_LOOKINGGLASS', !getenv('DISABLE_BLOCK_LOOKINGGLASS'));
define('LG_BLOCK_SPEEDTEST', !getenv('DISABLE_BLOCK_SPEEDTEST'));
// This enables the custom block, which you can use to add something custom to the LG;
define('LG_BLOCK_CUSTOM', isset($_ENV['ENABLE_CUSTOM_BLOCK']));
define('LG_BLOCK_CUSTOM', getenv('ENABLE_CUSTOM_BLOCK'));
// Define a file here which will be used to display the custom block, can be PHP too which outputs HTML;
const LG_CUSTOM_HTML = __DIR__.'/custom.html.php';