diff options
Diffstat (limited to 'mioproxy.prod.hcl')
| -rw-r--r-- | mioproxy.prod.hcl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mioproxy.prod.hcl b/mioproxy.prod.hcl new file mode 100644 index 0000000..fa712c4 --- /dev/null +++ b/mioproxy.prod.hcl @@ -0,0 +1,34 @@ +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/nil.ninja.crt" + tls_key_file = "letsencrypt/lego/certificates/nil.ninja.key" + + proxy albatross { + from { + host = "t.nil.ninja" + path = "/phperkaigi/2024/golf/" + } + to { + host = "127.0.0.1" + port = 8001 + } + auth basic { + realm = "Auth required albatross" + credential_file = "albatross.htpasswd" + } + } +} |
