logo

pleroma

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

httpd.conf (995B)


  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. ext_inet="<IPv4 address>"
  13. #ext_inet6="<IPv6 address>"
  14. server "default" {
  15. listen on $ext_inet port 80 # Comment to disable listening on IPv4
  16. # listen on $ext_inet6 port 80 # Comment to disable listening on IPv6
  17. listen on 127.0.0.1 port 80 # Do NOT comment this line
  18. log syslog
  19. directory no index
  20. location "/.well-known/acme-challenge/*" {
  21. root "/acme"
  22. request strip 2
  23. }
  24. location "/robots.txt" { root "/htdocs/local/" }
  25. location "/*" { block return 302 "https://$HTTP_HOST$REQUEST_URI" }
  26. }
  27. types {
  28. include "/usr/share/misc/mime.types"
  29. }