diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-10-08 00:23:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-10-08 00:35:45 +0900 |
| commit | 111c7319d54d32eb1360c731c443b1675edc3ded (patch) | |
| tree | fb00a815689aa5596204c003e52d1d0fe5cb029c /mioproxy.prod.hcl | |
| parent | 777d36505713749916dfbd4d0a5fd90302271328 (diff) | |
| download | nsfisis.dev-111c7319d54d32eb1360c731c443b1675edc3ded.tar.gz nsfisis.dev-111c7319d54d32eb1360c731c443b1675edc3ded.tar.zst nsfisis.dev-111c7319d54d32eb1360c731c443b1675edc3ded.zip | |
feat(proxy): mioproxy
Diffstat (limited to 'mioproxy.prod.hcl')
| -rw-r--r-- | mioproxy.prod.hcl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mioproxy.prod.hcl b/mioproxy.prod.hcl new file mode 100644 index 00000000..a9e99051 --- /dev/null +++ b/mioproxy.prod.hcl @@ -0,0 +1,29 @@ +user = "ken" + +server http { + host = "0.0.0.0" + port = 80 + + redirect_to_https = true + acme_challenge { + root = "letsencrypt/webroot" + } +} + +server https { + host = "0.0.0.0" + port = 443 + + tls_cert_file = "letsencrypt/lego/certificates/nsfisis.dev.crt" + tls_key_file = "letsencrypt/lego/certificates/nsfisis.dev.key" + + proxy blog { + from { + host = "blog.nsfisis.dev" + } + to { + host = "127.0.0.1" + port = 8001 + } + } +} |
