diff options
author | nonlinear <matthew@wishek.com> | 2018-12-15 14:00:00 -0800 |
---|---|---|
committer | nonlinear <matthew@wishek.com> | 2018-12-15 14:00:00 -0800 |
commit | 75f2177d5b68d610b859c18eddb14540d1ee92b5 (patch) | |
tree | 9dbf12688a51c123f2dd0896dab57c9b5dedc7b0 /installation/openbsd/httpd.conf | |
parent | 04513a13e0430a72228280739dc401089c7dc8b3 (diff) | |
download | pleroma-75f2177d5b68d610b859c18eddb14540d1ee92b5.tar.gz pleroma-75f2177d5b68d610b859c18eddb14540d1ee92b5.zip |
Update/add OpenBSD config files
Diffstat (limited to 'installation/openbsd/httpd.conf')
-rw-r--r-- | installation/openbsd/httpd.conf | 36 |
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" +} + |