forked from PrivateBin/docker-nginx-fpm-alpine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconf.json
86 lines (86 loc) · 2.59 KB
/
conf.json
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
{
"listeners": {
"*:8080": {
"pass": "routes"
},
"[::]:8080": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": ["/", "/shortenviayourls"]
},
"action": {
"pass": "applications/privatebin"
}
},
{
"match": {
"uri": "/favicon.ico"
},
"action": {
"return": 301,
"location": "/img/favicon.ico"
}
},
{
"action": {
"share": "/srv/www${uri}",
"response_headers": {
"Cache-Control": "public, max-age=3600, must-revalidate, no-transform",
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Resource-Policy": "same-origin",
"Referrer-Policy": "no-referrer",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "deny",
"X-XSS-Protection": "1; mode=block"
}
}
}
],
"applications": {
"privatebin": {
"type": "php",
"root": "/srv/",
"script": "www/index.php",
"options": {
"file": "/etc/php/php.ini",
"admin": {
"display_errors": "Off",
"log_errors": "On",
"upload_max_filesize": "15M",
"post_max_size": "15M",
"short_open_tag": "Off",
"expose_php": "Off",
"error_reporting": "-1",
"opcache.interned_strings_buffer": "8",
"opcache.max_accelerated_files": "20000",
"opcache.memory_consumption": "128",
"opcache.validate_timestamps": "Off",
"realpath_cache_size": "4096K"
}
},
"processes": {
"max": 5,
"spare": 2,
"idle_timeout": 35
}
}
},
"settings": {
"http": {
"max_body_size": 15728640,
"static": {
"mime_types": {
"application/wasm": [".wasm"]
}
}
}
},
"access_log": {
"path": "/dev/stdout",
"format": "$remote_addr - - [$time_local] \"$request_line\" $status $body_bytes_sent \"$header_referer\" \"$header_user_agent\" \"$header_x_forwarded_for\""
}
}