docs: update README

This commit is contained in:
2026-01-21 04:39:35 +01:00
parent 3938fb0920
commit a299e500bb
5 changed files with 248 additions and 1 deletions

21
static/503.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>Kitty down!</title>
</head>
<body>
<center>
<div style="font-family: system-ui;">
<div>
<h1>Kitty down!</h1>
<p>Oops! Seems like you visited kittyurl while we're down for maintenance. Don't worry - we should be back in a moment!</p>
</div>
<div>
<img src="bigchungus.jpg" style="width: 12em;">
</div>
</div>
</center>
</body>
</html>

108
static/apache2.conf Normal file
View File

@@ -0,0 +1,108 @@
<VirtualHost *:80>
ServerName example.com
ServerAlias *.example.com
ErrorLog /dev/null
CustomLog /dev/null combined
# Uncomment to enable http -> https rewrite.
#
# RewriteEngine On
# RewriteCond %{SERVER_NAME} =example.com
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
# Redirect / https://example.com%{REQUEST_URI}
#
# If you decide to redirect to https,
# you're free to comment lines below.
# Feeling extra fancy? How about custom 503 page,
# when the server is down for maintenance?
# A sample page has been provided in the static/ directory.
<Directory "/var/www/html/kittyurl-static/">
Options -Indexes
AllowOverride All
</Directory>
Alias "/.well-known" "/var/www/html/kittyurl-static/.well-known"
ProxyPreserveHost On
ProxyPass /.well-known !
ProxyPass /.well-known/errors/ !
ErrorDocument 503 /.well-known/errors/503.html
# 1. Match EXACT root "/" (for frontend)
ProxyPassMatch ^/$ http://127.0.0.1:6568/
ProxyPassReverse / http://127.0.0.1:6568/
# 2. Match "/assets/" and subpaths (for frontend)
ProxyPass /assets/ http://127.0.0.1:6568/assets/
ProxyPassReverse /assets/ http://127.0.0.1:6568/assets/
ProxyPass /panel/ http://127.0.0.1:6568/panel/
ProxyPassReverse /panel/ http://127.0.0.1:6568/panel/
ProxyPass /about/ http://127.0.0.1:6568/about/
ProxyPassReverse /about/ http://127.0.0.1:6568/about/
# 3. Match ALL OTHER paths (order matters: least specific LAST)
# Forward any and all traffic to backend.
ProxyPass / http://127.0.0.1:6567/
ProxyPassReverse / http://127.0.0.1:6567/
# Shared headers for ALL proxied requests
<Proxy *>
RequestHeader set X-Forwarded-Proto "http"
RequestHeader set X-Real-IP %{X-Forwarded-For}i
</Proxy>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
Include /etc/letsencrypt/options-ssl-apache.conf
ServerName example.com
ServerAlias *.example.com
ErrorLog /dev/null
CustomLog /dev/null combined
# Feeling extra fancy? How about custom 503 page,
# when the server is down for maintenance?
# A sample page has been provided in the static/ directory.
<Directory "/var/www/html/kittyurl-static/">
Options -Indexes
AllowOverride All
</Directory>
Alias "/.well-known" "/var/www/html/kittyurl-static/.well-known"
ProxyPreserveHost On
ProxyPass /.well-known !
ProxyPass /.well-known/errors/ !
ErrorDocument 503 /.well-known/errors/503.html
# 1. Match EXACT root "/" (for frontend)
ProxyPassMatch ^/$ http://127.0.0.1:6568/
ProxyPassReverse / http://127.0.0.1:6568/
# 2. Match "/assets/" and subpaths (for frontend)
ProxyPass /assets/ http://127.0.0.1:6568/assets/
ProxyPassReverse /assets/ http://127.0.0.1:6568/assets/
ProxyPass /panel/ http://127.0.0.1:6568/panel/
ProxyPassReverse /panel/ http://127.0.0.1:6568/panel/
ProxyPass /about/ http://127.0.0.1:6568/about/
ProxyPassReverse /about/ http://127.0.0.1:6568/about/
# 3. Match ALL OTHER paths (order matters: least specific LAST)
# Forward any and all traffic to backend.
ProxyPass / http://127.0.0.1:6567/
ProxyPassReverse / http://127.0.0.1:6567/
# Shared headers for ALL proxied requests
<Proxy *>
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Real-IP %{X-Forwarded-For}i
</Proxy>
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
</VirtualHost>
</IfModule>

BIN
static/bigchungus.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
static/firefox_landing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB