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__)
app.config['SECRET_KE...
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.com yadamiel...
Continue reading...

Embed and authenticate Grafana in a iframe

Grafana

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

Grafana config:

[auth.proxy]
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`
heade...
Continue reading...