Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vazhnov/smokeping_nginx
Smokeping with Nginx — configuration examples
https://github.com/vazhnov/smokeping_nginx
configurations nginx smokeping
Last synced: 3 months ago
JSON representation
Smokeping with Nginx — configuration examples
- Host: GitHub
- URL: https://github.com/vazhnov/smokeping_nginx
- Owner: vazhnov
- License: mit
- Created: 2016-07-28T17:48:00.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T23:03:12.000Z (about 2 years ago)
- Last Synced: 2024-04-27T08:32:12.349Z (7 months ago)
- Topics: configurations, nginx, smokeping
- Homepage: https://gitlab.com/vazhnov/smokeping_nginx
- Size: 11.7 KB
- Stars: 41
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smokeping with Nginx
## Configuration examples
Because links to images generates with /smokeping/, all configs use this path for static files and images.
### simple.conf
Very simple, but main page not in /smokeping/, main page is http://smokeping.example.com/cgi-bin/smokeping.cgi
### big.conf
Partialy used content of `/etc/nginx/fastcgi_params`, except of `SCRIPT_FILENAME`.
### best.conf
Like `big.conf`, but with redirect from wrong URLs to main page.
## Installing
### Ubuntu / Debian
Note: `apache2-` argument is using here to force APT to not install `apache2` package, which is in _recommends_ list of `smokeping` package. It is also possible to use `--no-install-recommends`, but then other useful packages will not be installed automatically.
Replace here "smokeping.example.net" by your DNS name:
```shell
export MYSITENAME="smokeping.example.net"
sudo apt-get -V install smokeping apache2-
sudo apt-get -V install fcgiwrap nginx
wget 'https://gitlab.com/vazhnov/smokeping_nginx/-/raw/main/best.conf'
sed -i -- s/smokeping\.example\.com/${MYSITENAME}/g best.conf
sudo chown -v root:root best.conf
sudo mv -v best.conf /etc/nginx/sites-available/${MYSITENAME}.conf
sudo ln -v -s "../sites-available/${MYSITENAME}.conf" "/etc/nginx/sites-enabled/${MYSITENAME}.conf"
sudo nginx -t
sudo service nginx reload
```Then open an URL http://smokeping.example.net/smokeping/smokeping.cgi in a web-browser.
## Links
* [This project on GitLab](https://gitlab.com/vazhnov/smokeping_nginx)
* [This project on GitHub](https://github.com/vazhnov/smokeping_nginx)### Useful links
* [Nginx configurations for most popular CMS/CMF/Frameworks based on PHP](https://github.com/elasticweb/nginx-configs)
* [recipes](https://github.com/nginxinc/nginx-wiki/tree/master/source/start/topics/recipes) from [nginx-wiki](https://www.nginx.com/resources/wiki/)
* [examples](https://github.com/nginxinc/nginx-wiki/tree/master/source/start/topics/examples) from [nginx-wiki](https://www.nginx.com/resources/wiki/)## Copyright
Distributed under MIT license.