fixed something
This commit is contained in:
13
.gitignore
vendored
13
.gitignore
vendored
@@ -2,13 +2,18 @@
|
||||
mysql-data/
|
||||
logs/
|
||||
|
||||
# Node modules (if any)
|
||||
node_modules/
|
||||
|
||||
# OS generated files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Temporary files
|
||||
*.tmp
|
||||
*.temp
|
||||
*.temp
|
||||
|
||||
# Sensitive configuration files
|
||||
config/*.env
|
||||
*.pem
|
||||
|
||||
# Sensitive configuration files
|
||||
config/*.env
|
||||
*.pem
|
||||
12
000-default.conf
Normal file
12
000-default.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html/
|
||||
|
||||
<Directory /var/www/html/>
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
@@ -1,62 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
dustins-fault:
|
||||
build: .
|
||||
container_name: dustins-fault-website
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8443:443" # Because why not have HTTPS for a joke site?
|
||||
volumes:
|
||||
- ./logs:/usr/local/apache2/logs
|
||||
environment:
|
||||
- APACHE_RUN_USER=www-data
|
||||
- APACHE_RUN_GROUP=www-data
|
||||
- APACHE_LOG_DIR=/usr/local/apache2/logs
|
||||
- TZ=America/New_York
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- dustins-fault-net
|
||||
labels:
|
||||
- "com.dustinsfault.description=Website blaming Dustin for everything"
|
||||
- "com.dustinsfault.blame-level=maximum"
|
||||
- "com.dustinsfault.apologies-required=infinite"
|
||||
|
||||
# Because why not add a MySQL database to track all the things Dustin has fucked up?
|
||||
dustins-fault-db:
|
||||
image: mysql:8.0
|
||||
container_name: dustins-fault-database
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=itsdustinsfault
|
||||
- MYSQL_DATABASE=dustins_faults
|
||||
- MYSQL_USER=dustin
|
||||
- MYSQL_PASSWORD=blame_me
|
||||
volumes:
|
||||
- ./mysql-data:/var/lib/mysql
|
||||
- ./mysql-init:/docker-entrypoint-initdb.d
|
||||
networks:
|
||||
- dustins-fault-net
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.dustinsfault.purpose=Track Dustin's endless fuckups"
|
||||
|
||||
# And a phpMyAdmin because we're fancy like that
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
container_name: dustins-fault-phpmyadmin
|
||||
environment:
|
||||
- PMA_HOST=dustins-fault-db
|
||||
- PMA_PORT=3306
|
||||
- PMA_ARBITRARY=1
|
||||
ports:
|
||||
- "8081:80"
|
||||
networks:
|
||||
- dustins-fault-net
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.dustinsfault.purpose=View database of Dustin's sins"
|
||||
|
||||
networks:
|
||||
dustins-fault-net:
|
||||
driver: bridge
|
||||
name: dustins-fault-network
|
||||
13
www/404.html
13
www/404.html
@@ -1,15 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Error - Dustin's Fault</title>
|
||||
<style>
|
||||
body{font-family: monospace;background:#000;color:#0f0;margin:40px}
|
||||
h1{color:#f00}
|
||||
pre{color:#ff0}
|
||||
body { font-family: monospace; background: #000; color: #0f0; margin: 40px; }
|
||||
h1 { color: #f00; }
|
||||
pre { color: #ff0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ERROR 404 - PAGE NOT FOUND</h1>
|
||||
<h1>Error 404 - Page Not Found</h1>
|
||||
<p>This page doesn't exist. You know who to blame.</p>
|
||||
<pre>
|
||||
_____
|
||||
@@ -22,5 +22,6 @@ pre{color:#ff0}
|
||||
It's Dustin's fault. Obviously.
|
||||
</pre>
|
||||
<p><a href="/" style="color:#0ff">Go back to blaming Dustin properly</a></p>
|
||||
<p aria-describedby="404error-desc">If you actually like Dustin, you might want to rethink your life choices!</p><p id="404error-desc" style="color:#ff0">Because nobody should be this unlucky!</p>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Security note: Sanitize inputs and control command execution carefully
|
||||
|
||||
# Print header
|
||||
echo "Content-type: text/html"
|
||||
echo ""
|
||||
|
||||
@@ -61,32 +64,25 @@ pre {
|
||||
<pre>
|
||||
$(/usr/bin/fortune)
|
||||
</pre>
|
||||
|
||||
<p><b>Dustin's fault level:</b> $(echo $((RANDOM % 100 + 1)) )%</p>
|
||||
|
||||
<p><b>Figlet says:</b></p>
|
||||
<pre>
|
||||
$(echo "DUSTIN'S FAULT" | /usr/bin/figlet)
|
||||
</pre>
|
||||
|
||||
<div class="apology">
|
||||
$(echo "I'm sorry. It's my fault. I fucked up." | /usr/bin/lolcat)
|
||||
$(echo "I'm sorry. It's my fault. I messed up." | /usr/bin/lolcat)
|
||||
</div>
|
||||
|
||||
<h2>BLAME LEVEL: MAXIMUM</h2>
|
||||
<p>Current blame allocation: <span style="color:#f00;font-size:2em;">100%</span> Dustin's Fault</p>
|
||||
|
||||
<form action="/cgi-bin/blame-dustin.cgi" method="post">
|
||||
<input type="hidden" name="blame" value="more">
|
||||
<button type="submit" class="blame-button">BLAME DUSTIN EVEN HARDER</button>
|
||||
</form>
|
||||
|
||||
<p><a href="/" style="color:#0ff;">← Back to the main blame portal</a></p>
|
||||
|
||||
<p><a href="/" style="color:#0ff;">↩️ Back to the main blame portal</a></p>
|
||||
<hr>
|
||||
<small>Server time: $(date)<br>
|
||||
This page has been viewed $(echo $RANDOM) times by people blaming Dustin.<br>
|
||||
Total apologies generated: $(echo $((RANDOM * 1000)))</small>
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
EOF
|
||||
|
||||
865
www/index.html
865
www/index.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user