Archive technique CagedMonster
Setup SmokePing under OpenBSD with nginx and SSL
Using OpenBSD is easy, not joking... you'll see how it's easy to setup SmokePing using nginx and SSL.
As always, here is a quick way to deploy and configure the solutions.
Install components :
# pkg_add nginx smokeping
# rcctl enable nginx smokeping smokepin_fcgi
# mkdir /var/db/smokeping && chown _smokeping /var/db/smokeping
Configure SmokePing :
# vi /etc/smokeping/config
Just put your personnal informations and make a list of hosts at the end like that :
menu = Top
title = SmokePingPong
remark = Caged Monster'S Latency
+ France
menu= France
title= France
++ Nerim
menu = Nerim
title = Nerim Provider
host = www.nerim.net
++ Free
menu = Free
title = Free Provider
host = www.free.fr
Configure nginx :
# vi /etc/nginx/nginx.conf
# redirect HTTP to HTTPS
server {
listen 80;
listen [::]:80;
server_name stats.cagedmonster.net;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name stats.cagedmonster.net;
ssl_certificate /etc/letsencrypt/live/cagedmonster.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/cagedmonster.net/privkey.pem;
location = / {
fastcgi_pass unix:/run/smokeping.sock;
include /etc/nginx/fastcgi_params;
}
location / {
alias /var/www/htdocs/smokeping/;
}
}
Run your services :
# rcctl start nginx smokeping smokeping_fcgi
Well... that was easy !
Need help ?