summaryrefslogtreecommitdiff
path: root/complement/caddy.json
diff options
context:
space:
mode:
Diffstat (limited to 'complement/caddy.json')
-rw-r--r--complement/caddy.json72
1 files changed, 72 insertions, 0 deletions
diff --git a/complement/caddy.json b/complement/caddy.json
new file mode 100644
index 0000000..ea52c2c
--- /dev/null
+++ b/complement/caddy.json
@@ -0,0 +1,72 @@
+{
+ "logging": {
+ "logs": {
+ "default": {
+ "level": "WARN"
+ }
+ }
+ },
+ "apps": {
+ "http": {
+ "https_port": 8448,
+ "servers": {
+ "srv0": {
+ "listen": [":8448"],
+ "routes": [{
+ "match": [{
+ "host": ["your.server.name"]
+ }],
+ "handle": [{
+ "handler": "subroute",
+ "routes": [{
+ "handle": [{
+ "handler": "reverse_proxy",
+ "upstreams": [{
+ "dial": "127.0.0.1:8008"
+ }]
+ }]
+ }]
+ }],
+ "terminal": true
+ }],
+ "tls_connection_policies": [{
+ "match": {
+ "sni": ["your.server.name"]
+ }
+ }]
+ }
+ }
+ },
+ "pki": {
+ "certificate_authorities": {
+ "local": {
+ "name": "Complement CA",
+ "root": {
+ "certificate": "/complement/ca/ca.crt",
+ "private_key": "/complement/ca/ca.key"
+ },
+ "intermediate": {
+ "certificate": "/complement/ca/ca.crt",
+ "private_key": "/complement/ca/ca.key"
+ }
+ }
+ }
+ },
+ "tls": {
+ "automation": {
+ "policies": [{
+ "subjects": ["your.server.name"],
+ "issuers": [{
+ "module": "internal"
+ }],
+ "on_demand": true
+ }, {
+ "issuers": [{
+ "module": "internal",
+ "ca": "local"
+ }]
+ }]
+ }
+ }
+ }
+} \ No newline at end of file