2018-12-15 14:00:00 -08:00
|
|
|
#
|
|
|
|
|
# Default httpd.conf file for Pleroma on OpenBSD
|
|
|
|
|
# Simple installation instructions
|
|
|
|
|
# 1. Place file in /etc
|
2024-11-22 19:47:37 +01:00
|
|
|
# 2. Replace <ipaddr> with your public IP address
|
|
|
|
|
# 3. If using IPv6, uncomment IPv6 lines and replace <ip6addr> with your public IPv6 address
|
2024-11-11 23:48:33 +01:00
|
|
|
# 4. Replace all occurences of example.tld with your instance's domain name.
|
|
|
|
|
# 5. Check file using 'doas httpd -n'
|
|
|
|
|
# 6. Enable and start httpd:
|
2018-12-15 14:00:00 -08:00
|
|
|
# # doas rcctl enable httpd
|
|
|
|
|
# # doas rcctl start httpd
|
|
|
|
|
#
|
|
|
|
|
|
2024-11-22 19:47:37 +01:00
|
|
|
ext_inet="<ipaddr>"
|
|
|
|
|
#ext_inet6="<ip6addr>"
|
2018-12-15 14:00:00 -08:00
|
|
|
|
2024-11-11 23:48:33 +01:00
|
|
|
server "example.tld" {
|
2018-12-15 14:00:00 -08:00
|
|
|
listen on $ext_inet port 80 # Comment to disable listening on IPv4
|
2024-11-22 19:47:37 +01:00
|
|
|
#listen on $ext_inet6 port 80 # Comment to disable listening on IPv6
|
2018-12-15 14:00:00 -08:00
|
|
|
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 "/*" { block return 302 "https://$HTTP_HOST$REQUEST_URI" }
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-11 23:48:33 +01:00
|
|
|
# Example of serving a basic static website besides Pleroma using the example configuration in relayd
|
|
|
|
|
#server "site.example.tld" {
|
|
|
|
|
# listen on 127.0.0.1 port 8080
|
|
|
|
|
#
|
|
|
|
|
# location "/*" {
|
|
|
|
|
# root "/website"
|
|
|
|
|
# }
|
|
|
|
|
#}
|
|
|
|
|
|
2018-12-15 14:00:00 -08:00
|
|
|
types {
|
|
|
|
|
include "/usr/share/misc/mime.types"
|
|
|
|
|
}
|
|
|
|
|
|