Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
services:glances [2025/01/22 14:46] – [Glances] willy | services:glances [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Glances ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | Note: i stopped using Glances because it had a visible impact on my server performances. | ||
- | ==== Installation ==== | ||
- | |||
- | Glances is available in Gentoo' | ||
- | <code bash> | ||
- | python -m venv / | ||
- | . / | ||
- | pip install glances fastapi uvicorn jinja2 | ||
- | </ | ||
- | |||
- | |||
- | ==== Reverse Proxy ==== | ||
- | |||
- | Glances needs to be set up in the [[selfhost: | ||
- | |||
- | <file - glances.conf> | ||
- | location = /glances { | ||
- | return 301 https:// | ||
- | } | ||
- | |||
- | location /glances/ { | ||
- | rewrite / | ||
- | proxy_pass http:// | ||
- | proxy_set_header Host $http_host; | ||
- | proxy_set_header X-Real-IP $remote_addr; | ||
- | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
- | proxy_set_header X-Forwarded-Proto $scheme; | ||
- | } | ||
- | </ | ||
- | |||
- | ==== Autostart ==== | ||
- | |||
- | Create the following OpenRC start script into **/ | ||
- | <file - glancesweb> | ||
- | # | ||
- | # Copyright 1999-2021 Gentoo Authors | ||
- | # Distributed under the terms of the GNU General Public License v2 | ||
- | |||
- | description=" | ||
- | pidfile="/ | ||
- | logfile="/ | ||
- | |||
- | depend() { | ||
- | need net | ||
- | } | ||
- | |||
- | start() { | ||
- | . / | ||
- | / | ||
- | echo $! > ${pidfile} | ||
- | } | ||
- | </ | ||
- | |||
- | Then of course, set it to boot: | ||
- | <code bash> | ||
- | rc-update add glancesweb default | ||
- | </ | ||