File: test_h2.conf

package info (click to toggle)
libnginx-mod-http-brotli 1.0.0~rc-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: ansic: 805; sh: 262; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (2)
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
events {
  worker_connections 4;
}

daemon on;
error_log /dev/stdout info;

http {
  access_log ./access.log;
  error_log ./error.log;

  gzip on;
  gzip_comp_level 1;
  gzip_types text/plain text/css;

  brotli on;
  brotli_comp_level 1;
  brotli_types text/plain text/css;

  server {
    listen 8080 http2;
    listen [::]:8080 http2;

    root ./;

    index index.html;

    location / {
      try_files $uri $uri/ =404;
    }
  }
}