File: libcdb_nginx_cache.conf

package info (click to toggle)
pwntools 4.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,508 kB
  • sloc: python: 59,870; ansic: 48,351; asm: 45,047; sh: 396; makefile: 256
file content (86 lines) | stat: -rw-r--r-- 2,869 bytes parent folder | download
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
events {
    worker_connections 1024;
}

http {
    proxy_cache_path /var/cache/nginx keys_zone=my_cache:1m max_size=1g inactive=12w use_temp_path=off;
    log_format cache_st '$remote_addr - $remote_user - $upstream_cache_status [$time_local]  '
                    '"$request" $status $body_bytes_sent '
                    '"$http_referer" "$http_user_agent"';
    access_log /dev/stdout cache_st;

    server {
        listen 3000;
        proxy_cache my_cache;

        location / {
            proxy_set_header Host debuginfod.elfutils.org;
            proxy_ssl_server_name on;
            proxy_cache_revalidate on;
            proxy_cache_key $scheme://$host$uri$is_args$query_string;
            proxy_cache_valid 200 404 12w;
            proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504 http_429;
            proxy_pass https://debuginfod.elfutils.org/;
        }
    }

    server {
        listen 3001;
        proxy_cache my_cache;

        location / {
            proxy_set_header Host libc.rip;
            proxy_ssl_server_name on;
            proxy_cache_methods GET HEAD POST;
            proxy_cache_revalidate on;
            proxy_cache_key $scheme://$host$uri$is_args$query_string$request_body;
            proxy_cache_valid 200 404 12w;
            proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504 http_429;
            proxy_pass https://libc.rip/;
        }
    }

    server {
        listen 3002;
        proxy_cache my_cache;

        location / {
            proxy_set_header Host archive.ubuntu.com;
            proxy_cache_revalidate on;
            proxy_cache_key $scheme://$host$uri$is_args$query_string;
            proxy_cache_valid 200 404 12w;
            proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504 http_429;
            proxy_pass http://archive.ubuntu.com/;
        }
    }

    server {
        listen 3003;
        proxy_cache my_cache;

        location / {
            proxy_set_header Host gitlab.com;
            proxy_ssl_server_name on;
            proxy_cache_revalidate on;
            proxy_cache_key $scheme://$host$uri$is_args$query_string;
            proxy_cache_valid 200 404 12w;
            proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504 http_429;
            proxy_pass https://gitlab.com/;
        }
    }

    server {
        listen 3004;
        proxy_cache my_cache;

        location / {
            proxy_set_header Host debuginfod.ubuntu.com;
            proxy_ssl_server_name on;
            proxy_cache_revalidate on;
            proxy_cache_key $scheme://$host$uri$is_args$query_string;
            proxy_cache_valid 200 404 12w;
            proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504 http_429;
            proxy_pass https://debuginfod.ubuntu.com/;
        }
    }
}