From bb8d510516888fe1cda506c1a5816cee339eace3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 17 Jan 2024 23:38:54 +0900 Subject: add files --- mioproxy.prod.hcl | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 mioproxy.prod.hcl (limited to 'mioproxy.prod.hcl') 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" + } + } +} -- cgit v1.2.3-70-g09d2