photonglass/CONFIGURATION.md

86 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2024-12-26 14:55:17 +11:00
## Configuration
2024-12-28 14:20:42 +11:00
### Logos and favicon
If you wish to use custom assets, create the images folder under /instance, map it in docker-compose.yml and use the following filenames:
- favicon.svg
- logo-dark.svg
- logo-light.svg
2024-12-26 14:55:17 +11:00
### docker-compose.yml
```
services:
photonglass:
container_name: photonglass
restart: unless-stopped
build: .
ports:
- 5000:5000
volumes:
- ./instance:/instance
# - ./instance/images:/app/static/images # Commented out by default to use default logos
```
### instance/site.yaml
2024-12-26 14:55:17 +11:00
```
header:
title: "photonglass"
logo_href: "#"
footer:
text: "photonglass"
2024-12-28 14:20:42 +11:00
peeringdb_href: "https://www.peeringdb.com/net/xxx"
github_href: "https://github.com/alimickey/photonglass"
```
2024-12-26 14:55:17 +11:00
### instance/config.yaml
```
2024-12-26 14:55:17 +11:00
webhook:
url: "https://hooks.slack.com/###"
```
### instance/commands.yaml
```
ping:
display_name: "Ping"
format: "ping -{ip_version} -c 4 {target}"
2024-12-28 14:57:31 +11:00
description: "Performs ping with 4 ICMP requests to target"
2024-12-26 14:55:17 +11:00
field:
type: "text"
placeholder: "Enter IP address or hostname"
traceroute:
display_name: "Traceroute"
format: "traceroute -{ip_version} {target}"
2024-12-28 14:57:31 +11:00
description: "Performs traceroute to target"
2024-12-26 14:55:17 +11:00
field:
type: "text"
placeholder: "Enter IP address or hostname"
mtr:
display_name: "MTR"
format: "mtr -{ip_version} -r {target}"
2024-12-28 14:57:31 +11:00
description: "Performs MTR to target"
2024-12-26 14:55:17 +11:00
field:
type: "text"
placeholder: "Enter IP address or hostname"
```
### instance/devices.yaml
```
sydney1:
display_name: "Sydney"
subtext: "Equinix SY3"
country_code: "AU"
type: "linux"
commands:
- ping
- traceroute
- mtr
credentials:
host: "IP_ADDRESS"
port: PORT
username: "USERNAME"
password: "PASSWORD"
ssh_key: "id_rsa" # Optional
2024-12-26 14:55:17 +11:00
```