-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.manifest.template
63 lines (48 loc) · 2.11 KB
/
nginx.manifest.template
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
# Nginx manifest example
loader.entrypoint = "file:{{ gramine.libos }}"
libos.entrypoint = "/entrypoint/sbin/nginx"
loader.argv0_override = "/entrypoint/sbin/nginx"
loader.log_level = "error"
#loader.log_file = "debug/log.txt"
loader.env.LD_LIBRARY_PATH = "/lib:{{ arch_libdir }}"
fs.mounts = [
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/etc", uri = "file:/etc" },
{ path = "/usr", uri = "file:/usr" },
{ path = "/entrypoint/conf", uri = "file:/entrypoint/conf" },
{ path = "/entrypoint/sbin", uri = "file:/entrypoint/sbin" },
{ path = "/entrypoint/html", uri = "file:/entrypoint/html" },
{ path = "/entrypoint/modules", uri = "file:/entrypoint/modules" },
{ path = "/entrypoint/logs", uri = "file:/entrypoint/logs", type = "tmpfs" },
{ path = "/entrypoint/client_body_temp", uri = "file:/entrypoint/client_body_temp", type = "tmpfs" },
{ path = "/entrypoint/proxy_temp", uri = "file:/entrypoint/proxy_temp", type = "tmpfs" },
{ path = "/entrypoint/fastcgi_temp", uri = "file:/entrypoint/fastcgi_temp", type = "tmpfs" },
{ path = "/entrypoint/uwsgi_temp", uri = "file:/entrypoint/uwsgi_temp", type = "tmpfs" },
{ path = "/entrypoint/scgi_temp", uri = "file:/entrypoint/scgi_temp", type = "tmpfs" },
]
sgx.debug = false
sgx.enclave_size = "512M"
sgx.thread_num = 4
sys.enable_sigterm_injection = true
# Nginx benefits from Exitless. Uncomment the below line to use it.
sgx.rpc_thread_num = 4
sgx.trusted_files = [
"file:{{ gramine.libos }}",
"file:{{ gramine.runtimedir() }}/",
"file:{{ arch_libdir }}/",
"file:/entrypoint/sbin/nginx",
"file:/entrypoint/conf/",
"file:/entrypoint/html/",
"file:/entrypoint/modules/",
"file:/usr/share/GeoIP/",
"file:/usr/lib/ssl/openssl.cnf",
"file:/etc/nsswitch.conf",
"file:/etc/host.conf",
"file:/etc/group",
"file:/etc/passwd",
]
sgx.allowed_files = [
"file:/etc/hosts",
"file:/etc/resolv.conf",
]