How to detect changes on a webpage using python

The test page

First off, we need a page to test on. I personally just used a small simple flask app with flask_simplelogin as a page.

from flask import Flask
from flask_simplelogin import SimpleLogin, login_required
from datetime import datetime as dt

app = Flask(__name__)
Continue reading...

Simple NGINX setup for multiple services

Main page

This assumes that you are using certbot and have a wildcard certificate.

You'll want to store the main nginx file in /etc/nginx/conf.d/main.conf

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;
    server_name  * yadamiel...
Continue reading...

Embed and authenticate Grafana in a iframe


Grafana needs to be configured to allow header based auth from the auth proxy

Grafana config:

enabled = true
# HTTP Header name that will contain the username or email
header_name = X-WEBAUTH-USER
# HTTP Header property, defaults to `username` but can also be `email`
Continue reading...