summaryrefslogtreecommitdiff
path: root/examples/docker-minimal-separate/frontend
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-04 22:48:40 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-04 22:48:40 +0100
commita706e79fa722f681320fe1b05824352b6b9a63fc (patch)
tree41907841f09f19d93adfab91eb314bb0789851f9 /examples/docker-minimal-separate/frontend
parentf800e5fae8f9579328477b3bc3e939d9f4369d32 (diff)
parente0f11a58033d52c70bc76b4b5611cb88485d4653 (diff)
Merge branch 'extsign'
Diffstat (limited to 'examples/docker-minimal-separate/frontend')
-rw-r--r--examples/docker-minimal-separate/frontend/Dockerfile13
-rw-r--r--examples/docker-minimal-separate/frontend/catlfish.config38
-rw-r--r--examples/docker-minimal-separate/frontend/frontend42
3 files changed, 93 insertions, 0 deletions
diff --git a/examples/docker-minimal-separate/frontend/Dockerfile b/examples/docker-minimal-separate/frontend/Dockerfile
new file mode 100644
index 0000000..d5391b9
--- /dev/null
+++ b/examples/docker-minimal-separate/frontend/Dockerfile
@@ -0,0 +1,13 @@
+FROM catlfish
+
+ADD logkey/eckey.pem logkey/eckey-public.pem /opt/plop/test/
+ADD catlfish.config /opt/catlfish/rel/
+ADD known_roots /opt/catlfish/rel/known_roots
+ADD https /opt/catlfish/rel/https
+RUN mkdir /opt/catlfish/rel/log
+
+WORKDIR /opt/catlfish/rel
+EXPOSE 8080
+EXPOSE 8082
+
+CMD ["/usr/bin/supervisord"]
diff --git a/examples/docker-minimal-separate/frontend/catlfish.config b/examples/docker-minimal-separate/frontend/catlfish.config
new file mode 100644
index 0000000..9f5e35d
--- /dev/null
+++ b/examples/docker-minimal-separate/frontend/catlfish.config
@@ -0,0 +1,38 @@
+%% catlfish configuration file (-*- erlang -*-)
+%% Start like this:
+%% $ erl -boot start_sasl -config catlfish -run inets
+[{sasl,
+ [{sasl_error_logger, false},
+ {errlog_type, error},
+ {error_logger_mf_dir, "log"},
+ {error_logger_mf_maxbytes, 10485760}, % 10 MB
+ {error_logger_mf_maxfiles, 10}]},
+ {catlfish,
+ [{known_roots_path, "known_roots"},
+ {rejected_certs_path, "rejected"},
+ {https_servers,
+ [{external_https_api, "0.0.0.0", 8080, v1},
+ {frontend_https_api, "0.0.0.0", 8082, frontend}
+ ]},
+ {https_certfile, "https/certs/ct.cert.pem"},
+ {https_keyfile, "https/keys/ct.key.pem"},
+ {https_cacertfile, "https/certs/cas.pem"}
+ ]},
+ {lager,
+ [{handlers,
+ [{lager_console_backend, info},
+ {lager_file_backend, [{file, "log/error.log"}, {level, error}]},
+ {lager_file_backend, [{file, "log/debug.log"}, {level, debug}]},
+ {lager_file_backend, [{file, "log/console.log"}, {level, info}]}
+ ]}
+ ]},
+ {plop,
+ [{entry_root_path, "db/certentries/"},
+ {index_path, "db/index"},
+ {entryhash_root_path, "db/entryhash/"},
+ {treesize_path, "db/treesize"},
+ {indexforhash_root_path, "db/certindex/"},
+ {storage_nodes,
+ ["https://MY-PUBLIC-ADDRESS:10081/ct/storage/"]},
+ {storage_nodes_quorum, 1}
+ ]}].
diff --git a/examples/docker-minimal-separate/frontend/frontend b/examples/docker-minimal-separate/frontend/frontend
new file mode 100644
index 0000000..96f9a9b
--- /dev/null
+++ b/examples/docker-minimal-separate/frontend/frontend
@@ -0,0 +1,42 @@
+%% catlfish configuration file (-*- erlang -*-)
+%% Start like this:
+%% $ erl -boot start_sasl -config catlfish -run inets
+[{sasl,
+ [{sasl_error_logger, false},
+ {errlog_type, error},
+ {error_logger_mf_dir, "log"},
+ {error_logger_mf_maxbytes, 10485760}, % 10 MB
+ {error_logger_mf_maxfiles, 10}]},
+ {catlfish,
+ [{known_roots_path, "known_roots"},
+ {rejected_certs_path, "rejected"},
+ {https_servers,
+ [{external_https_api, "0.0.0.0", 8080, v1},
+ {frontend_https_api, "0.0.0.0", 8082, frontend}
+ ]},
+ {https_certfile, "https/certs/ct.cert.pem"},
+ {https_keyfile, "https/keys/ct.key.pem"},
+ {https_cacertfile, "https/certs/cas.pem"}
+ ]},
+ {lager,
+ [{handlers,
+ [{lager_console_backend, info},
+ {lager_file_backend, [{file, "log/error.log"}, {level, error}]},
+ {lager_file_backend, [{file, "log/debug.log"}, {level, debug}]},
+ {lager_file_backend, [{file, "log/console.log"}, {level, info}]}
+ ]}
+ ]},
+ {plop,
+ [{entry_root_path, "db/certentries/"},
+ {index_path, "db/index"},
+ {entryhash_root_path, "db/entryhash/"},
+ {treesize_path, "db/treesize"},
+ {indexforhash_root_path, "db/certindex/"},
+ {storage_nodes,
+ ["https://f0.ct.nordu.net:10081/ct/storage/",
+ "https://f0.ct.nordu.net:11081/ct/storage/",
+ "https://f0.ct.nordu.net:12081/ct/storage/",
+ "https://f0.ct.nordu.net:13081/ct/storage/",
+ "https://f0.ct.nordu.net:14081/ct/storage/"]},
+ {storage_nodes_quorum, 3}
+ ]}].