logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

httpd.conf (1226B)


  1. #
  2. # Default httpd.conf file for Pleroma on OpenBSD
  3. # Simple installation instructions
  4. # 1. Place file in /etc
  5. # 2. Replace <ipaddr> with your public IP address
  6. # 3. If using IPv6, uncomment IPv6 lines and replace <ip6addr> with your public IPv6 address
  7. # 4. Replace all occurences of example.tld with your instance's domain name.
  8. # 5. Check file using 'doas httpd -n'
  9. # 6. Enable and start httpd:
  10. # # doas rcctl enable httpd
  11. # # doas rcctl start httpd
  12. #
  13. ext_inet="<ipaddr>"
  14. #ext_inet6="<ip6addr>"
  15. server "example.tld" {
  16. listen on $ext_inet port 80 # Comment to disable listening on IPv4
  17. #listen on $ext_inet6 port 80 # Comment to disable listening on IPv6
  18. listen on 127.0.0.1 port 80 # Do NOT comment this line
  19. log syslog
  20. directory no index
  21. location "/.well-known/acme-challenge/*" {
  22. root "/acme"
  23. request strip 2
  24. }
  25. location "/*" { block return 301 "https://$HTTP_HOST$REQUEST_URI" }
  26. }
  27. # Example of serving a basic static website besides Pleroma using the example configuration in relayd
  28. #server "site.example.tld" {
  29. # listen on 127.0.0.1 port 8080
  30. #
  31. # location "/*" {
  32. # root "/website"
  33. # }
  34. #}
  35. types {
  36. include "/usr/share/misc/mime.types"
  37. }