summaryrefslogtreecommitdiff
path: root/nginx.conf
blob: cc1f0d72d13ef0c63d22845e9e414e911d7ea226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
events {
  use epoll;
}

pid /dev/null;
error_log /dev/null;

http {

  access_log /dev/null;
  error_log stderr info;
  client_body_temp_path /dev/null;
  proxy_temp_path /dev/null;
  fastcgi_temp_path /dev/null;
  scgi_temp_path /dev/null;
  uwsgi_temp_path /dev/null;

  types {
    application/font-woff woff;
    application/javascript js;
    application/json json;
    application/x-font-ttf ttf;
    audio/ogg ogg;
    image/jpeg jpg;
    image/png png;
    image/svg+xml svg;
    image/webp webp;
    text/cache-manifest appcache;
    text/css css;
    text/html; charset=utf-8 html;
    text/plain; charset=utf-8 txt;
    video/mp4 mp4;
    video/webm webm;
    video/x-matroska mkv;
  }
  default_type application/octet-stream;

  gzip on;
  include nginx.gen.conf;
  gzip_types application/javascript application/json image/svg+xml text/plain text/css;
  gzip_vary on;

  sendfile on;
  tcp_nopush on;
  tcp_nodelay on;

  index index.html;

  server {
    listen 8080;
    root www;
    add_header Cache-Control public;
    location /dump/ {
      expires 1y;
      location /dump/bgm/Afternoon.ogg { add_header X-Content-Duration "176"; }
      location /dump/bgm/Ah_Eh_I_Oh_You.ogg { add_header X-Content-Duration "126"; }
      location /dump/bgm/Air_Guitar.ogg { add_header X-Content-Duration "73"; }
      location /dump/bgm/Aria_de_l'Etoile.ogg { add_header X-Content-Duration "83"; }
      location /dump/bgm/Breathlessly.ogg { add_header X-Content-Duration "113"; }
      location /dump/bgm/Caged_Heart.ogg { add_header X-Content-Duration "81"; }
      location /dump/bgm/Cold_Iron.ogg { add_header X-Content-Duration "182"; }
      location /dump/bgm/Comfort.ogg { add_header X-Content-Duration "158"; }
      location /dump/bgm/Concord.ogg { add_header X-Content-Duration "185"; }
      location /dump/bgm/Daylight.ogg { add_header X-Content-Duration "106"; }
      location /dump/bgm/Ease.ogg { add_header X-Content-Duration "148"; }
      location /dump/bgm/Everyday_Fantasy.ogg { add_header X-Content-Duration "112"; }
      location /dump/bgm/Friendship.ogg { add_header X-Content-Duration "76"; }
      location /dump/bgm/Fripperies.ogg { add_header X-Content-Duration "88"; }
      location /dump/bgm/Generic_Happy_Music.ogg { add_header X-Content-Duration "77"; }
      location /dump/bgm/High_Tension.ogg { add_header X-Content-Duration "53"; }
      location /dump/bgm/Hokabi.ogg { add_header X-Content-Duration "142"; }
      location /dump/bgm/Innocence.ogg { add_header X-Content-Duration "193"; }
      location /dump/bgm/Letting_my_Heart_Speak.ogg { add_header X-Content-Duration "156"; }
      location /dump/bgm/Lullaby_of_Open_Eyes.ogg { add_header X-Content-Duration "189"; }
      location /dump/bgm/Moment_of_Decision.ogg { add_header X-Content-Duration "243"; }
      location /dump/bgm/Nocturne.low.ogg { add_header X-Content-Duration "229"; }
      location /dump/bgm/Nocturne.ogg { add_header X-Content-Duration "229"; }
      location /dump/bgm/Out_of_the_Loop.ogg { add_header X-Content-Duration "145"; }
      location /dump/bgm/Painful_History.ogg { add_header X-Content-Duration "160"; }
      location /dump/bgm/Parity.ogg { add_header X-Content-Duration "129"; }
      location /dump/bgm/Passing_of_Time.ogg { add_header X-Content-Duration "48"; }
      location /dump/bgm/Raindrops_and_Puddles.ogg { add_header X-Content-Duration "155"; }
      location /dump/bgm/Red_Velvet.ogg { add_header X-Content-Duration "208"; }
      location /dump/bgm/Romance_in_Andante_II.ogg { add_header X-Content-Duration "176"; }
      location /dump/bgm/Romance_in_Andante.ogg { add_header X-Content-Duration "64"; }
      location /dump/bgm/Sarabande_from_BWV1010,_Musicbox.ogg { add_header X-Content-Duration "82"; }
      location /dump/bgm/School_Days.ogg { add_header X-Content-Duration "168"; }
      location /dump/bgm/Shadow_of_the_Truth.ogg { add_header X-Content-Duration "130"; }
      location /dump/bgm/Standing_Tall.ogg { add_header X-Content-Duration "177"; }
      location /dump/bgm/Stride.ogg { add_header X-Content-Duration "134"; }
      location /dump/bgm/The_Student_Council.ogg { add_header X-Content-Duration "103"; }
      location /dump/bgm/To_Become_One.ogg { add_header X-Content-Duration "248"; }
      location /dump/bgm/Wiosna.ogg { add_header X-Content-Duration "70"; }
      location /dump/sfx/alarm.ogg { add_header X-Content-Duration "04.35"; }
      location /dump/sfx/billiards_break.ogg { add_header X-Content-Duration "02.55"; }
      location /dump/sfx/billiards.ogg { add_header X-Content-Duration "01.14"; }
      location /dump/sfx/birdstakeoff.ogg { add_header X-Content-Duration "04.91"; }
      location /dump/sfx/businterior.ogg { add_header X-Content-Duration "45.51"; }
      location /dump/sfx/camera.ogg { add_header X-Content-Duration "00.48"; }
      location /dump/sfx/can_clatter.ogg { add_header X-Content-Duration "03.01"; }
      location /dump/sfx/can.ogg { add_header X-Content-Duration "01.49"; }
      location /dump/sfx/carillon.ogg { add_header X-Content-Duration "11.85"; }
      location /dump/sfx/cellphone.ogg { add_header X-Content-Duration "03.77"; }
      location /dump/sfx/chaimu.ogg { add_header X-Content-Duration "05.36"; }
      location /dump/sfx/cicadas.ogg { add_header X-Content-Duration "27.90"; }
      location /dump/sfx/crowd_cheer.ogg { add_header X-Content-Duration "17.49"; }
      location /dump/sfx/crowd_indoors.ogg { add_header X-Content-Duration "58.53"; }
      location /dump/sfx/crowd_outdoors.ogg { add_header X-Content-Duration "60.50"; }
      location /dump/sfx/crunch.ogg { add_header X-Content-Duration "00.75"; }
      location /dump/sfx/doorclose.ogg { add_header X-Content-Duration "00.79"; }
      location /dump/sfx/door_creak.ogg { add_header X-Content-Duration "03.25"; }
      location /dump/sfx/doorknock2.ogg { add_header X-Content-Duration "00.75"; }
      location /dump/sfx/doorknock.ogg { add_header X-Content-Duration "01.98"; }
      location /dump/sfx/dooropen.ogg { add_header X-Content-Duration "01.19"; }
      location /dump/sfx/doorslam.ogg { add_header X-Content-Duration "01.53"; }
      location /dump/sfx/dropglasses.ogg { add_header X-Content-Duration "00.42"; }
      location /dump/sfx/dropstuff.ogg { add_header X-Content-Duration "02.00"; }
      location /dump/sfx/emibounce.ogg { add_header X-Content-Duration "02.00"; }
      location /dump/sfx/emijogging.ogg { add_header X-Content-Duration "42.00"; }
      location /dump/sfx/emipacing.ogg { add_header X-Content-Duration "06.28"; }
      location /dump/sfx/emirunning.ogg { add_header X-Content-Duration "07.63"; }
      location /dump/sfx/emisprinting.ogg { add_header X-Content-Duration "04.48"; }
      location /dump/sfx/fireworks.ogg { add_header X-Content-Duration "42.72"; }
      location /dump/sfx/flash.ogg { add_header X-Content-Duration "00.68"; }
      location /dump/sfx/footsteps_hard.ogg { add_header X-Content-Duration "02.69"; }
      location /dump/sfx/footsteps_soft.ogg { add_header X-Content-Duration "02.64"; }
      location /dump/sfx/hammer.ogg { add_header X-Content-Duration "00.75"; }
      location /dump/sfx/heart_single_fast.ogg { add_header X-Content-Duration "01.19"; }
      location /dump/sfx/heart_single_slow.ogg { add_header X-Content-Duration "01.98"; }
      location /dump/sfx/heart_stop.ogg { add_header X-Content-Duration "00.85"; }
      location /dump/sfx/hollowclick.ogg { add_header X-Content-Duration "00.34"; }
      location /dump/sfx/lighter.ogg { add_header X-Content-Duration "03.15"; }
      location /dump/sfx/lock.ogg { add_header X-Content-Duration "00.68"; }
      location /dump/sfx/paper.ogg { add_header X-Content-Duration "00.92"; }
      location /dump/sfx/paperruffling.ogg { add_header X-Content-Duration "10.17"; }
      location /dump/sfx/parkambience.ogg { add_header X-Content-Duration "28.93"; }
      location /dump/sfx/phone.ogg { add_header X-Content-Duration "02.25"; }
      location /dump/sfx/pillow.ogg { add_header X-Content-Duration "01.04"; }
      location /dump/sfx/rain.ogg { add_header X-Content-Duration "88.40"; }
      location /dump/sfx/rooftop.ogg { add_header X-Content-Duration "50.09"; }
      location /dump/sfx/rumble.ogg { add_header X-Content-Duration "04.03"; }
      location /dump/sfx/rustling.ogg { add_header X-Content-Duration "01.99"; }
      location /dump/sfx/scratch.ogg { add_header X-Content-Duration "00.40"; }
      location /dump/sfx/shower.ogg { add_header X-Content-Duration "12.16"; }
      location /dump/sfx/skid2.ogg { add_header X-Content-Duration "02.20"; }
      location /dump/sfx/slide2.ogg { add_header X-Content-Duration "00.51"; }
      location /dump/sfx/slide.ogg { add_header X-Content-Duration "01.36"; }
      location /dump/sfx/snap.ogg { add_header X-Content-Duration "00.32"; }
      location /dump/sfx/stallbuilding.ogg { add_header X-Content-Duration "28.93"; }
      location /dump/sfx/startpistol.ogg { add_header X-Content-Duration "03.58"; }
      location /dump/sfx/startpistol.trim.ogg { add_header X-Content-Duration "02.27"; }
      location /dump/sfx/storebell.ogg { add_header X-Content-Duration "03.62"; }
      location /dump/sfx/switch.ogg { add_header X-Content-Duration "00.34"; }
      location /dump/sfx/sword_draw.ogg { add_header X-Content-Duration "00.85"; }
      location /dump/sfx/tcard.ogg { add_header X-Content-Duration "14.43"; }
      location /dump/sfx/teacup.ogg { add_header X-Content-Duration "01.74"; }
      location /dump/sfx/thunder.ogg { add_header X-Content-Duration "04.86"; }
      location /dump/sfx/time.ogg { add_header X-Content-Duration "03.14"; }
      location /dump/sfx/time.trim.ogg { add_header X-Content-Duration "02.13"; }
      location /dump/sfx/traffic.ogg { add_header X-Content-Duration "60.62"; }
      location /dump/sfx/trainint.ogg { add_header X-Content-Duration "08.80"; }
      location /dump/sfx/whiteout.ogg { add_header X-Content-Duration "01.82"; }
      location /dump/sfx/wumph_2.ogg { add_header X-Content-Duration "00.53"; }
      location /dump/sfx/wumph.ogg { add_header X-Content-Duration "01.00"; }
    }

    location ~ ^/(css/font|js/lib|scripts)/ {
      expires 1d;
    }

    expires 5s;
    add_header X-UA-Compatible "IE=edge";
  }
}
# vim:ft=nginx: