Merge branch 'feature/sql-thread-sat' into 'develop'
[akkoma] / installation / openbsd / httpd.conf
1 #
2 # Default httpd.conf file for Pleroma on OpenBSD
3 # Simple installation instructions
4 # 1. Place file in /etc
5 # 2. Replace <IPv4 address> with your public IP address
6 # 3. If using IPv6, uncomment IPv6 lines and replace <IPv6 address> with your public IPv6 address
7 # 4. Check file using 'doas httpd -n'
8 # 5. Enable and start httpd:
9 # # doas rcctl enable httpd
10 # # doas rcctl start httpd
11 #
12
13 ext_inet="<IPv4 address>"
14 #ext_inet6="<IPv6 address>"
15
16 server "default" {
17 listen on $ext_inet port 80 # Comment to disable listening on IPv4
18 # listen on $ext_inet6 port 80 # Comment to disable listening on IPv6
19 listen on 127.0.0.1 port 80 # Do NOT comment this line
20
21 log syslog
22 directory no index
23
24 location "/.well-known/acme-challenge/*" {
25 root "/acme"
26 request strip 2
27 }
28
29 location "/robots.txt" { root "/htdocs/local/" }
30 location "/*" { block return 302 "https://$HTTP_HOST$REQUEST_URI" }
31 }
32
33 types {
34 include "/usr/share/misc/mime.types"
35 }
36