commit b153d786cfadeab46362fef6d9bc0bb7cf3bda16 Author: sthkm3 Date: Sat Oct 24 23:23:43 2026 +0800 Switch to nginx, compress video, unmute on interaction diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7b808c2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +* +!Dockerfile +!nginx.conf +!index.htm +!rickroll.mp4 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..33f5d15 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM nginxinc/nginx-unprivileged:stable-alpine + +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY index.htm /usr/share/nginx/html/index.html +COPY rickroll.mp4 /usr/share/nginx/html/rickroll.mp4 + +EXPOSE 1000 diff --git a/index.htm b/index.htm new file mode 100644 index 0000000..43d068d --- /dev/null +++ b/index.htm @@ -0,0 +1,86 @@ + + + + + + About + + + + + +

Remember, Rick never give you up

+ +
+ + +
+ + + + + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..2ee0885 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,25 @@ +server { + listen 1000; + server_name _; + + server_tokens off; + root /usr/share/nginx/html; + + add_header X-Content-Type-Options nosniff always; + add_header X-Frame-Options DENY always; + add_header Referrer-Policy no-referrer always; + + # Only static reads; scanners POSTing exploits get 405 + if ($request_method !~ ^(GET|HEAD)$) { + return 405; + } + + location = /rickroll.mp4 { + expires 7d; + } + + # Every other path (/wp-admin, /.env, ...) gets rickrolled + location / { + try_files /index.html =404; + } +} diff --git a/rickroll.mp4 b/rickroll.mp4 new file mode 100644 index 0000000..92f6f79 Binary files /dev/null and b/rickroll.mp4 differ