diff --git a/.gitignore b/.gitignore index 1d17dae..033df5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .venv +__pycache__ diff --git a/app.py b/app.py index 8676c4e..6a5dee4 100755 --- a/app.py +++ b/app.py @@ -1,13 +1,22 @@ -from flask import Flask, render_template, redirect, url_for +#!/usr/bin/env python3 +from flask import Flask, render_template, redirect, url_for +import os + +services = ("httpd", "nsd", "pf", "ntp") app = Flask(__name__) - - - -@app.route("/" or "/index.html") +navigation = {"Imprint":"imprint"} +@app.route("/imprint") def root(): - return render_template("template.html",page = "Page") + return render_template("imprint.html") -@app.route("/imprint.html") -def imprint(): - return render_template("template.html",page = "Imprint") +@app.route("/about") +def about(): + return render_template("about.html") + +@app.route("/") +def homepage(): + return render_template("homepage.html") + +if __name__ == "__main__": + app.run(debug=True) diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..306eaec --- /dev/null +++ b/templates/about.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% block title %}About{% endblock %} +{% block head %} + {{ super() }} +{% endblock %} +{% block content %} +

Profession: Linux Systems Engineer

+

Name: Adrian Erik Hoemann

Experience: 3Y

+

Languages: German, English

+

Programming languages: Python, Bash, POSIX Shell

+

Markup languages: HTML, MD

+

Structure languages: JSON, XML, YAML, TOML

+

Query languages: SQL

+

Services managed: SSH, DNS, DHCP, PF, UFW, NF-Tables, +RDP(XRDP, Microsoft RDP), Webserver(Apache24, Nginx, OpenBSD-httpd, +Caddy), SMB, NFS, FTP, WebDAV, Hypervisors(VMWare ESXi, +libvirt(QEMU/KVM), QEMU, Hyper-V), Kubernetes, Containers(LXD, Docker, +Podman, Jails)

+

Operating systems managed: Debian, Ubuntu, RangeeOS, FreeBSD, OPNSense, OpenBSD, NixOS

+{% endblock %} + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..6c5c78a --- /dev/null +++ b/templates/base.html @@ -0,0 +1,31 @@ + + + + {% block head %} + + + + + {% block title %}{% endblock %} - Adrianux.net + {% endblock %} + + + +
+

{{ self.title() }}

+
{% block content %}{% endblock %}
+
+ + + + diff --git a/templates/homepage.html b/templates/homepage.html new file mode 100644 index 0000000..fb99723 --- /dev/null +++ b/templates/homepage.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block title %}About{% endblock %} +{% block head %} + {{ super() }} +{% endblock %} +{% block content %} +

This is Adrian's homepage, checkout this servers list of running services here

+{% endblock %} diff --git a/templates/imprint.html b/templates/imprint.html new file mode 100644 index 0000000..59c6e38 --- /dev/null +++ b/templates/imprint.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block title %}Imprint{% endblock %} +{% block head %} + {{ super() }} +{% endblock %} +{% block content %} +

This is a website for personal use and is not subject to German Digital Services Act ยง5. If you have any inquiries feel free to contact the author of this site.

+{% endblock %} + diff --git a/templates/robots.txt b/templates/robots.txt new file mode 100644 index 0000000..7d99217 --- /dev/null +++ b/templates/robots.txt @@ -0,0 +1,3 @@ +User-Agent: * +Disallow: /about +Disallow: /imprint diff --git a/templates/template.html b/templates/template.html deleted file mode 100644 index 70b9747..0000000 --- a/templates/template.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - Adrianux.net - - - - - -
-
{{ page }}
- -
Homepage
-
- Welcome to the Adrianux.net homepage, Adrian's website, feel free to check out what this VPS is currently serving. here or under Monitoring. -
-
- - - - \ No newline at end of file