User Tools

Site Tools


running_webservices_openbsd_vmm

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
running_webservices_openbsd_vmm [2025/02/25 22:57] – [finalizing] ethanrunning_webservices_openbsd_vmm [2025/04/20 11:38] (current) ethan
Line 1: Line 1:
 +**notice**: I have been having issues with vmm/Alpine Linux, where, after a VM shutdown, Alpine Linux will become somehow be corrupted and I must boot into the installation iso to repair the system. if this happens to you, all I had to do was update Alpine.
 +
 ======running webservices from OpenBSD's vmm====== ======running webservices from OpenBSD's vmm======
 although it is most likely best to run most things directly on an OpenBSD host, compatibility issues and other pains may arise depending on the service. although it is most likely best to run most things directly on an OpenBSD host, compatibility issues and other pains may arise depending on the service.
  
-this is a guide on how to host web content from a virtual machine running inside [[OpenBSD]]'s [[vmm]] and serve it through a reverse proxy with [[https://man.openbsd.org/relayd.8|relayd]].+this is a guide on how to host web content from a virtual machine running inside [[https://openbsd.org|OpenBSD]]'s [[vmm]] and serve it through a reverse proxy with [[https://man.openbsd.org/relayd.8|relayd]].
  
 in the setup this guide shows, relayd will handle http and https requests to the OpenBSD machine and separate them based on domain (yonderly.org, example.com, ...), then send them to either the host or the virtual machine. httpd will also listen on the domain for the virtual machine in order to force https; the virtual machine's http server will only be accessible through https. in the setup this guide shows, relayd will handle http and https requests to the OpenBSD machine and separate them based on domain (yonderly.org, example.com, ...), then send them to either the host or the virtual machine. httpd will also listen on the domain for the virtual machine in order to force https; the virtual machine's http server will only be accessible through https.
Line 137: Line 139:
 if it mentions the configuration was unchanged, you did not edit its config properly. if it mentions the configuration was unchanged, you did not edit its config properly.
  
-also, take the time to install and setup doas. 
-<code> 
-# apk add doas 
-</code> 
-<file bash /etc/doas.conf> 
-permit persist :wheel 
-</file> 
 exit the chroot and unmount the installation. exit the chroot and unmount the installation.
 <code> <code>
Line 336: Line 331:
 </code> </code>
 =====finalizing===== =====finalizing=====
-now that the certificates exist, the "tls" line for alpine0.yonderly.org can be uncommented relayd.conf.+now that the certificates exist, the "tls" line for alpine0.yonderly.org can be uncommented in relayd.conf.
 <file bash /etc/relayd.conf> <file bash /etc/relayd.conf>
 ... ...
running_webservices_openbsd_vmm.1740524257.txt.gz · Last modified: 2025/02/25 22:57 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