From: anon Date: Sat, 5 Jul 2025 11:15:10 +0000 (+0200) Subject: reorder the project X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=aef6f78d010ac50325d6b7abf983d591845fc502;p=emil-up.chud.cyou.git reorder the project --- diff --git a/Makefile b/Makefile index 4eff9af..b91412e 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ serve: lighttpd -D -f lighttpd.conf front: - lighttpd -D -f example.lighttpd.conf + lighttpd -D -f example_frontend.lighttpd.conf clean: -${RM} -frfr out/ diff --git a/evil.tcl b/evil.tcl deleted file mode 100755 index 9060f7c..0000000 --- a/evil.tcl +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/tclsh - -set f [open "evil.txt" "w"] -close $f - -puts stderr "evil.txt created" diff --git a/example.html b/example.html deleted file mode 100644 index 137594e..0000000 --- a/example.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
- Upload a file - - -
-
-
diff --git a/example.lighttpd.conf b/example.lighttpd.conf deleted file mode 100644 index 86a4f82..0000000 --- a/example.lighttpd.conf +++ /dev/null @@ -1,6 +0,0 @@ -# @BAKE lighttpd -D -f $@ -server.document-root = var.CWD -server.port = "8081" - -server.modules += ( "mod_rewrite" ) -url.rewrite-once = ( ".*" => "/example.html" ) diff --git a/example.png b/example.png deleted file mode 100644 index df5d578..0000000 Binary files a/example.png and /dev/null differ diff --git a/example.txt b/example.txt deleted file mode 100644 index 557db03..0000000 --- a/example.txt +++ /dev/null @@ -1 +0,0 @@ -Hello World diff --git a/example_frontend.html b/example_frontend.html new file mode 100644 index 0000000..137594e --- /dev/null +++ b/example_frontend.html @@ -0,0 +1,12 @@ +
+
+
+ Upload a file + + +
+
+
diff --git a/example_frontend.lighttpd.conf b/example_frontend.lighttpd.conf new file mode 100644 index 0000000..cdca761 --- /dev/null +++ b/example_frontend.lighttpd.conf @@ -0,0 +1,6 @@ +# @BAKE lighttpd -D -f $@ +server.document-root = var.CWD +server.port = "8081" + +server.modules += ( "mod_rewrite" ) +url.rewrite-once = ( ".*" => "/example_frontend.html" ) diff --git a/test/evil.tcl b/test/evil.tcl new file mode 100755 index 0000000..9060f7c --- /dev/null +++ b/test/evil.tcl @@ -0,0 +1,6 @@ +#!/usr/bin/tclsh + +set f [open "evil.txt" "w"] +close $f + +puts stderr "evil.txt created" diff --git a/test/test.png b/test/test.png new file mode 100644 index 0000000..df5d578 Binary files /dev/null and b/test/test.png differ diff --git a/test/test.txt b/test/test.txt new file mode 100644 index 0000000..557db03 --- /dev/null +++ b/test/test.txt @@ -0,0 +1 @@ +Hello World diff --git a/test/upload-test.sh b/test/upload-test.sh new file mode 100755 index 0000000..936e013 --- /dev/null +++ b/test/upload-test.sh @@ -0,0 +1,2 @@ +#!/bin/sh +curl --upload-file example.png http://localhost:8080/ diff --git a/upload-test.sh b/upload-test.sh deleted file mode 100755 index 936e013..0000000 --- a/upload-test.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -curl --upload-file example.png http://localhost:8080/