User Tools

Site Tools


4get_openbsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4get_openbsd [2025/02/09 04:01] ethan4get_openbsd [2025/04/20 11:34] (current) ethan
Line 1: Line 1:
 ======4get on OpenBSD====== ======4get on OpenBSD======
-this is a guide showing how to install [[https://git.lolcat.ca/lolcat/4get/|4get]] on [[OpenBSD]], and host it with [[https://man.openbsd.org/httpd|httpd(8)]].+this is a guide showing how to install [[https://git.lolcat.ca/lolcat/4get/|4get]] on [[https://openbsd.org|OpenBSD]], and host it with [[https://man.openbsd.org/httpd|httpd(8)]].
 =====dependencies===== =====dependencies=====
 ====git==== ====git====
Line 31: Line 31:
 <code bash> <code bash>
 pkg_add php-curl-8.2.27 pkg_add php-curl-8.2.27
 +</code>
 +
 +php runs in the webserver chroot (/var/www) for security. curl will look for /etc/ssl/cert.pem, a file that contains the public keys of certificate authorities so that it can verify https connections, but will be unable to find it since it is in the actual root (/).
 +
 +create /var/www/etc/ssl/ and copy cert.pem into it.
 +<code bash>
 +mkdir -p /var/www/etc/ssl
 +cp /etc/ssl/cert.pem
 </code> </code>
  
Line 85: Line 93:
 <file /etc/httpd.conf bash> <file /etc/httpd.conf bash>
 server "search.yonderly.org" { server "search.yonderly.org" {
- listen on egress port https+ listen on egress port http 
 + listen on egress tls port https
  
  tls {  tls {
Line 130: Line 139:
 go to /var/www/ and clone 4get's repository. go to /var/www/ and clone 4get's repository.
 <code bash> <code bash>
 +cd /var/www
 git clone https://git.lolcat.ca/lolcat/4get git clone https://git.lolcat.ca/lolcat/4get
 </code> </code>
 it will now sit at /var/www/4get, accessible as /4get by httpd. it will now sit at /var/www/4get, accessible as /4get by httpd.
 +
 +you also need to set the permissions of icons/.
 +<code bash>
 +chmod -R 777 ./icons/
 +</code>
 =====finalizing===== =====finalizing=====
 there are a few last steps before 4get is public. there are a few last steps before 4get is public.
Line 170: Line 185:
 </file> </file>
 this will make the system run acme-client every hour for search.yonderly.org. this will make the system run acme-client every hour for search.yonderly.org.
 +{{tag>openbsd www httpd}}
4get_openbsd.1739073666.txt.gz · Last modified: 2025/02/09 04:01 by ethan

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki