summaryrefslogtreecommitdiff
path: root/installation/openbsd/httpd.conf
diff options
context:
space:
mode:
authornonlinear <matthew@wishek.com>2018-12-15 14:00:00 -0800
committernonlinear <matthew@wishek.com>2018-12-15 14:00:00 -0800
commit75f2177d5b68d610b859c18eddb14540d1ee92b5 (patch)
tree9dbf12688a51c123f2dd0896dab57c9b5dedc7b0 /installation/openbsd/httpd.conf
parent04513a13e0430a72228280739dc401089c7dc8b3 (diff)
downloadpleroma-75f2177d5b68d610b859c18eddb14540d1ee92b5.tar.gz
pleroma-75f2177d5b68d610b859c18eddb14540d1ee92b5.zip
Update/add OpenBSD config files
Diffstat (limited to 'installation/openbsd/httpd.conf')
-rw-r--r--installation/openbsd/httpd.conf36
1 files changed, 36 insertions, 0 deletions
diff --git a/installation/openbsd/httpd.conf b/installation/openbsd/httpd.conf
new file mode 100644
index 000000000..82f4803fd
--- /dev/null
+++ b/installation/openbsd/httpd.conf
@@ -0,0 +1,36 @@
+#
+# Default httpd.conf file for Pleroma on OpenBSD
+# Simple installation instructions
+# 1. Place file in /etc
+# 2. Replace <IPv4 address> with your public IP address
+# 3. If using IPv6, uncomment IPv6 lines and replace <IPv6 address> with your public IPv6 address
+# 4. Check file using 'doas httpd -n'
+# 5. Enable and start httpd:
+# # doas rcctl enable httpd
+# # doas rcctl start httpd
+#
+
+ext_inet="<IPv4 address>"
+#ext_inet6="<IPv6 address>"
+
+server "default" {
+ listen on $ext_inet port 80 # Comment to disable listening on IPv4
+# listen on $ext_inet6 port 80 # Comment to disable listening on IPv6
+ listen on 127.0.0.1 port 80 # Do NOT comment this line
+
+ log syslog
+ directory no index
+
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
+ }
+
+ location "/robots.txt" { root "/htdocs/local/" }
+ location "/*" { block return 302 "https://$HTTP_HOST$REQUEST_URI" }
+}
+
+types {
+ include "/usr/share/misc/mime.types"
+}
+