summaryrefslogtreecommitdiffstats
path: root/etc/httpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r--etc/httpd.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf
new file mode 100644
index 0000000..a8d3907
--- /dev/null
+++ b/etc/httpd.conf
@@ -0,0 +1,22 @@
+server "nfsw.dingy.space" {
+ listen on * port 80
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+ }
+ location * {
+ block return 302 "https://$HTTP_HOST$REQUEST_URI"
+ }
+}
+
+server "nfsw.dingy.space" {
+ listen on * tls port 443
+ tls {
+ certificate "/etc/ssl/nfsw.dingy.space.fullchain.pem"
+ key "/etc/ssl/private/nfsw.dingy.space.key"
+ }
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+ }
+}