Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 01:00 UTC
| 1 | { |
| 2 | debug |
| 3 | http_port 8080 |
| 4 | https_port 8443 |
| 5 | grace_period 5s |
| 6 | shutdown_delay 10s |
| 7 | default_sni localhost |
| 8 | order root first |
| 9 | storage file_system { |
| 10 | root /data |
| 11 | } |
| 12 | storage_check off |
| 13 | storage_clean_interval off |
| 14 | acme_ca https://example.com |
| 15 | acme_ca_root /path/to/ca.crt |
| 16 | ocsp_stapling off |
| 17 | |
| 18 | email test@example.com |
| 19 | admin off |
| 20 | on_demand_tls { |
| 21 | ask https://example.com |
| 22 | } |
| 23 | local_certs |
| 24 | key_type ed25519 |
| 25 | } |
| 26 | |
| 27 | :80 |
| 28 | ---------- |
| 29 | { |
| 30 | "admin": { |
| 31 | "disabled": true |
| 32 | }, |
| 33 | "logging": { |
| 34 | "logs": { |
| 35 | "default": { |
| 36 | "level": "DEBUG" |
| 37 | } |
| 38 | } |
| 39 | }, |
| 40 | "storage": { |
| 41 | "module": "file_system", |
| 42 | "root": "/data" |
| 43 | }, |
| 44 | "apps": { |
| 45 | "http": { |
| 46 | "http_port": 8080, |
| 47 | "https_port": 8443, |
| 48 | "grace_period": 5000000000, |
| 49 | "shutdown_delay": 10000000000, |
| 50 | "servers": { |
| 51 | "srv0": { |
| 52 | "listen": [ |
| 53 | ":80" |
| 54 | ] |
| 55 | } |
| 56 | } |
| 57 | }, |
| 58 | "tls": { |
| 59 | "automation": { |
| 60 | "policies": [ |
| 61 | { |
| 62 | "issuers": [ |
| 63 | { |
| 64 | "module": "internal" |
| 65 | } |
| 66 | ], |
| 67 | "key_type": "ed25519", |
| 68 | "disable_ocsp_stapling": true |
| 69 | } |
| 70 | ], |
| 71 | "on_demand": { |
| 72 | "permission": { |
| 73 | "endpoint": "https://example.com", |
| 74 | "module": "http" |
| 75 | } |
| 76 | } |
| 77 | }, |
| 78 | "disable_ocsp_stapling": true, |
| 79 | "disable_storage_check": true, |
| 80 | "disable_storage_clean": true |
| 81 | } |
| 82 | } |
| 83 | } |