-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.manifest.template
38 lines (32 loc) · 1.03 KB
/
app.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
libos.entrypoint = "/app/phphttpd"
loader.entrypoint = "file:{{ gramine.libos }}"
loader.log_level = "debug"
loader.insecure__use_cmdline_argv = true
loader.env.LD_LIBRARY_PATH = "/lib:{{ arch_libdir }}:/usr/local/lib"
loader.env.HOST_NAME = { passthrough = true }
fs.mounts = [
{ path = "/tmp", uri = "file:/tmp", type = "tmpfs" },
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/etc", uri = "file:/etc" },
{ path = "/php", uri = "file:/php" },
{ path = "/app", uri = "file:/app" },
]
sgx.debug = true
sgx.nonpie_binary = true
sgx.enclave_size = "4G"
sgx.thread_num = 32
sgx.trusted_files = [
"file:{{ gramine.libos }}",
"file:{{ gramine.runtimedir() }}/",
"file:{{ arch_libdir }}/",
"file:/app/",
"file:/etc/",
"file:/php/lib/php.ini",
]
sgx.allowed_files = [
"file:/etc/hosts",
"file:/etc/resolv.conf",
"file:/etc/ssl/",
"file:/usr/local/share/ca-certificates/"
]