summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-04 22:32:04 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-04 22:32:04 -0500
commit8caf295a150d3818cd371b35a78edb5b9a6effec (patch)
tree7dfeec1f0072621a0c273ad691694a8972d52a57
parent47dcecef2d467204510e5d68910e5dffdb958ad1 (diff)
downloadhtml5ks-8caf295a150d3818cd371b35a78edb5b9a6effec.tar.xz
html5ks-8caf295a150d3818cd371b35a78edb5b9a6effec.zip
Make simple warning page.
-rw-r--r--nginx.conf126
-rw-r--r--www/warn.html17
2 files changed, 33 insertions, 110 deletions
diff --git a/nginx.conf b/nginx.conf
index 3eeb610..097c64d 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -52,122 +52,28 @@ http {
add_header Cache-Control public;
location /dump/ {
expires 1y;
- location ~ ^/dump/bgm/Afternoon\. { add_header X-Content-Duration "176"; }
- location ~ ^/dump/bgm/Ah_Eh_I_Oh_You\. { add_header X-Content-Duration "126"; }
- location ~ ^/dump/bgm/Air_Guitar\. { add_header X-Content-Duration "73"; }
- location ~ ^/dump/bgm/Aria_de_l'Etoile\. { add_header X-Content-Duration "83"; }
- location ~ ^/dump/bgm/Breathlessly\. { add_header X-Content-Duration "113"; }
- location ~ ^/dump/bgm/Caged_Heart\. { add_header X-Content-Duration "81"; }
- location ~ ^/dump/bgm/Cold_Iron\. { add_header X-Content-Duration "182"; }
- location ~ ^/dump/bgm/Comfort\. { add_header X-Content-Duration "158"; }
- location ~ ^/dump/bgm/Concord\. { add_header X-Content-Duration "185"; }
- location ~ ^/dump/bgm/Daylight\. { add_header X-Content-Duration "106"; }
- location ~ ^/dump/bgm/Ease\. { add_header X-Content-Duration "148"; }
- location ~ ^/dump/bgm/Everyday_Fantasy\. { add_header X-Content-Duration "112"; }
- location ~ ^/dump/bgm/Friendship\. { add_header X-Content-Duration "76"; }
- location ~ ^/dump/bgm/Fripperies\. { add_header X-Content-Duration "88"; }
- location ~ ^/dump/bgm/Generic_Happy_Music\. { add_header X-Content-Duration "77"; }
- location ~ ^/dump/bgm/High_Tension\. { add_header X-Content-Duration "53"; }
- location ~ ^/dump/bgm/Hokabi\. { add_header X-Content-Duration "142"; }
- location ~ ^/dump/bgm/Innocence\. { add_header X-Content-Duration "193"; }
- location ~ ^/dump/bgm/Letting_my_Heart_Speak\. { add_header X-Content-Duration "156"; }
- location ~ ^/dump/bgm/Lullaby_of_Open_Eyes\. { add_header X-Content-Duration "189"; }
- location ~ ^/dump/bgm/Moment_of_Decision\. { add_header X-Content-Duration "243"; }
- location ~ ^/dump/bgm/Nocturne.low\. { add_header X-Content-Duration "229"; }
- location ~ ^/dump/bgm/Nocturne\. { add_header X-Content-Duration "229"; }
- location ~ ^/dump/bgm/Out_of_the_Loop\. { add_header X-Content-Duration "145"; }
- location ~ ^/dump/bgm/Painful_History\. { add_header X-Content-Duration "160"; }
- location ~ ^/dump/bgm/Parity\. { add_header X-Content-Duration "129"; }
- location ~ ^/dump/bgm/Passing_of_Time\. { add_header X-Content-Duration "48"; }
- location ~ ^/dump/bgm/Raindrops_and_Puddles\. { add_header X-Content-Duration "155"; }
- location ~ ^/dump/bgm/Red_Velvet\. { add_header X-Content-Duration "208"; }
- location ~ ^/dump/bgm/Romance_in_Andante_II\. { add_header X-Content-Duration "176"; }
- location ~ ^/dump/bgm/Romance_in_Andante\. { add_header X-Content-Duration "64"; }
- location ~ ^/dump/bgm/Sarabande_from_BWV1010,_Musicbox\. { add_header X-Content-Duration "82"; }
- location ~ ^/dump/bgm/School_Days\. { add_header X-Content-Duration "168"; }
- location ~ ^/dump/bgm/Shadow_of_the_Truth\. { add_header X-Content-Duration "130"; }
- location ~ ^/dump/bgm/Standing_Tall\. { add_header X-Content-Duration "177"; }
- location ~ ^/dump/bgm/Stride\. { add_header X-Content-Duration "134"; }
- location ~ ^/dump/bgm/The_Student_Council\. { add_header X-Content-Duration "103"; }
- location ~ ^/dump/bgm/To_Become_One\. { add_header X-Content-Duration "248"; }
- location ~ ^/dump/bgm/Wiosna\. { add_header X-Content-Duration "70"; }
- location ~ ^/dump/sfx/alarm\. { add_header X-Content-Duration "04.35"; }
- location ~ ^/dump/sfx/billiards_break\. { add_header X-Content-Duration "02.55"; }
- location ~ ^/dump/sfx/billiards\. { add_header X-Content-Duration "01.14"; }
- location ~ ^/dump/sfx/birdstakeoff\. { add_header X-Content-Duration "04.91"; }
- location ~ ^/dump/sfx/businterior\. { add_header X-Content-Duration "45.51"; }
- location ~ ^/dump/sfx/camera\. { add_header X-Content-Duration "00.48"; }
- location ~ ^/dump/sfx/can_clatter\. { add_header X-Content-Duration "03.01"; }
- location ~ ^/dump/sfx/can\. { add_header X-Content-Duration "01.49"; }
- location ~ ^/dump/sfx/carillon\. { add_header X-Content-Duration "11.85"; }
- location ~ ^/dump/sfx/cellphone\. { add_header X-Content-Duration "03.77"; }
- location ~ ^/dump/sfx/chaimu\. { add_header X-Content-Duration "05.36"; }
- location ~ ^/dump/sfx/cicadas\. { add_header X-Content-Duration "27.90"; }
- location ~ ^/dump/sfx/crowd_cheer\. { add_header X-Content-Duration "17.49"; }
- location ~ ^/dump/sfx/crowd_indoors\. { add_header X-Content-Duration "58.53"; }
- location ~ ^/dump/sfx/crowd_outdoors\. { add_header X-Content-Duration "60.50"; }
- location ~ ^/dump/sfx/crunch\. { add_header X-Content-Duration "00.75"; }
- location ~ ^/dump/sfx/doorclose\. { add_header X-Content-Duration "00.79"; }
- location ~ ^/dump/sfx/door_creak\. { add_header X-Content-Duration "03.25"; }
- location ~ ^/dump/sfx/doorknock2\. { add_header X-Content-Duration "00.75"; }
- location ~ ^/dump/sfx/doorknock\. { add_header X-Content-Duration "01.98"; }
- location ~ ^/dump/sfx/dooropen\. { add_header X-Content-Duration "01.19"; }
- location ~ ^/dump/sfx/doorslam\. { add_header X-Content-Duration "01.53"; }
- location ~ ^/dump/sfx/dropglasses\. { add_header X-Content-Duration "00.42"; }
- location ~ ^/dump/sfx/dropstuff\. { add_header X-Content-Duration "02.00"; }
- location ~ ^/dump/sfx/emibounce\. { add_header X-Content-Duration "02.00"; }
- location ~ ^/dump/sfx/emijogging\. { add_header X-Content-Duration "42.00"; }
- location ~ ^/dump/sfx/emipacing\. { add_header X-Content-Duration "06.28"; }
- location ~ ^/dump/sfx/emirunning\. { add_header X-Content-Duration "07.63"; }
- location ~ ^/dump/sfx/emisprinting\. { add_header X-Content-Duration "04.48"; }
- location ~ ^/dump/sfx/fireworks\. { add_header X-Content-Duration "42.72"; }
- location ~ ^/dump/sfx/flash\. { add_header X-Content-Duration "00.68"; }
- location ~ ^/dump/sfx/footsteps_hard\. { add_header X-Content-Duration "02.69"; }
- location ~ ^/dump/sfx/footsteps_soft\. { add_header X-Content-Duration "02.64"; }
- location ~ ^/dump/sfx/hammer\. { add_header X-Content-Duration "00.75"; }
- location ~ ^/dump/sfx/heart_single_fast\. { add_header X-Content-Duration "01.19"; }
- location ~ ^/dump/sfx/heart_single_slow\. { add_header X-Content-Duration "01.98"; }
- location ~ ^/dump/sfx/heart_stop\. { add_header X-Content-Duration "00.85"; }
- location ~ ^/dump/sfx/hollowclick\. { add_header X-Content-Duration "00.34"; }
- location ~ ^/dump/sfx/lighter\. { add_header X-Content-Duration "03.15"; }
- location ~ ^/dump/sfx/lock\. { add_header X-Content-Duration "00.68"; }
- location ~ ^/dump/sfx/paper\. { add_header X-Content-Duration "00.92"; }
- location ~ ^/dump/sfx/paperruffling\. { add_header X-Content-Duration "10.17"; }
- location ~ ^/dump/sfx/parkambience\. { add_header X-Content-Duration "28.93"; }
- location ~ ^/dump/sfx/phone\. { add_header X-Content-Duration "02.25"; }
- location ~ ^/dump/sfx/pillow\. { add_header X-Content-Duration "01.04"; }
- location ~ ^/dump/sfx/rain\. { add_header X-Content-Duration "88.40"; }
- location ~ ^/dump/sfx/rooftop\. { add_header X-Content-Duration "50.09"; }
- location ~ ^/dump/sfx/rumble\. { add_header X-Content-Duration "04.03"; }
- location ~ ^/dump/sfx/rustling\. { add_header X-Content-Duration "01.99"; }
- location ~ ^/dump/sfx/scratch\. { add_header X-Content-Duration "00.40"; }
- location ~ ^/dump/sfx/shower\. { add_header X-Content-Duration "12.16"; }
- location ~ ^/dump/sfx/skid2\. { add_header X-Content-Duration "02.20"; }
- location ~ ^/dump/sfx/slide2\. { add_header X-Content-Duration "00.51"; }
- location ~ ^/dump/sfx/slide\. { add_header X-Content-Duration "01.36"; }
- location ~ ^/dump/sfx/snap\. { add_header X-Content-Duration "00.32"; }
- location ~ ^/dump/sfx/stallbuilding\. { add_header X-Content-Duration "28.93"; }
- location ~ ^/dump/sfx/startpistol\. { add_header X-Content-Duration "03.58"; }
- location ~ ^/dump/sfx/startpistol.trim\. { add_header X-Content-Duration "02.27"; }
- location ~ ^/dump/sfx/storebell\. { add_header X-Content-Duration "03.62"; }
- location ~ ^/dump/sfx/switch\. { add_header X-Content-Duration "00.34"; }
- location ~ ^/dump/sfx/sword_draw\. { add_header X-Content-Duration "00.85"; }
- location ~ ^/dump/sfx/tcard\. { add_header X-Content-Duration "14.43"; }
- location ~ ^/dump/sfx/teacup\. { add_header X-Content-Duration "01.74"; }
- location ~ ^/dump/sfx/thunder\. { add_header X-Content-Duration "04.86"; }
- location ~ ^/dump/sfx/time\. { add_header X-Content-Duration "03.14"; }
- location ~ ^/dump/sfx/time.trim\. { add_header X-Content-Duration "02.13"; }
- location ~ ^/dump/sfx/traffic\. { add_header X-Content-Duration "60.62"; }
- location ~ ^/dump/sfx/trainint\. { add_header X-Content-Duration "08.80"; }
- location ~ ^/dump/sfx/whiteout\. { add_header X-Content-Duration "01.82"; }
- location ~ ^/dump/sfx/wumph_2\. { add_header X-Content-Duration "00.53"; }
- location ~ ^/dump/sfx/wumph\. { add_header X-Content-Duration "01.00"; }
+ location ~ ^/dump/(bgm|sfx)/ { add_header X-Content-Duration "0"; }
}
location ~ ^/(css/font|js/lib|scripts)/ {
expires 1d;
}
+ location / {
+ if ($http_cookie !~ "warned") {
+ return 301 /warn.html;
+ }
+ }
+
+ location /setcookie.html {
+ add_header Set-Cookie "warned=1; Expires=Tue, 19 Jan 2038 00:00:00 GMT; HttpOnly";
+ return 301 /;
+ }
+
+ location /warn.html {
+ break;
+ }
+
expires 5s;
add_header X-UA-Compatible "IE=edge";
}
diff --git a/www/warn.html b/www/warn.html
new file mode 100644
index 0000000..0c638ef
--- /dev/null
+++ b/www/warn.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Katawa Shoujo - Disclaimer</title>
+ </head>
+ <body>
+ <p>Okay, before we start, we need to go through a few things first.</p>
+ <p>If you don't know what Katawa Shoujo is, see <a href="http://www.katawa-shoujo.com/">http://www.katawa-shoujo.com/</a>, then come back.</p>
+ <p>The full version of Katawa Shoujo contains adult material.<br>
+ Promise that you are over <b>18 years</b> old and that you will not make the material available to persons below that age.
+ </p>
+ <p>Also, please don't bother the original developers on the forums or IRC about bugs in this. This is entirely unofficial and not controlled by them whatsoever.<br>
+ This includes typos, graphical misplacement, downtime, and any other glitches of any sort. Bug me instead: <a href="https://bugzilla.happinessforme.com/">https://bugzilla.happinessforme.com/</a>.
+ </p>
+ <p><a href="setcookie.html">OK? Great.</a></p>
+ </body>
+</html>