summaryrefslogtreecommitdiffhomepage
path: root/mioproxy.prod.hcl
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-17 23:38:54 +0900
committernsfisis <nsfisis@gmail.com>2024-01-17 23:41:40 +0900
commitbb8d510516888fe1cda506c1a5816cee339eace3 (patch)
treeeaa9ee8824f3b77cf4e43802aacbee0129e8a05e /mioproxy.prod.hcl
parent9c448ed58559e54c152b7809a4bd1a6df56dcd95 (diff)
downloadnil.ninja-bb8d510516888fe1cda506c1a5816cee339eace3.tar.gz
nil.ninja-bb8d510516888fe1cda506c1a5816cee339eace3.tar.zst
nil.ninja-bb8d510516888fe1cda506c1a5816cee339eace3.zip
add files
Diffstat (limited to 'mioproxy.prod.hcl')
-rw-r--r--mioproxy.prod.hcl34
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"
+ }
+ }
+}