1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/nixos
Niklas Hambüchen 17e4387b38 nixos/smokeping: Make default imgUrl relative.
This avoids a common problem:

Until now, port forwarding to multiple hosts running smokeping did not work;
they all show the data of the first smokeping instance.
That ws because the image URLs generated by smokeping are absolute
(`imgurl` setting).
Consequently, if you ran
  ssh node-1 -L 8081:localhost:8081
  ssh node-2 -L 8081:localhost:8082
  ssh node-3 -L 8081:localhost:8083
and try to open http://localhost:8081, http://localhost:8082 and
http://localhost:8083, they all would show the images of node-1!

Using a relative `imgurl` fixes that.
As per smokeping docs on `imgurl`:

> Either an absolute URL to the `imgcache` directory or one relative to the
> directory where you keep the SmokePing cgi.
2021-11-01 23:20:40 +01:00
..
doc Merge pull request #142743 from symphorien/ihm-5-dev-2 2021-10-31 19:32:40 +00:00
lib Revert "nixos/specialisation: Rephrase in terms of extendModules, noUserModules" 2021-11-01 09:41:55 +01:00
maintainers nixos/maintainers/scripts: Avoid copy in example 2021-10-17 23:57:42 +02:00
modules nixos/smokeping: Make default imgUrl relative. 2021-11-01 23:20:40 +01:00
tests spike: move test to installCheck phase (#143832) 2021-11-01 21:26:38 +01:00
COPYING
default.nix
README
release-combined.nix
release-small.nix
release.nix NixOS/amazonImageZfs: init 2021-08-25 10:42:35 -04:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.