Bug 278600

Summary: ports-mgmt/poudriere: Add OpenBSD httpd(8) example configuration
Product: Ports & Packages Reporter: Älven <alster>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: New ---    
Severity: Affects Only Me CC: bdrewery, eduardo, tatsuki_makino
Priority: --- Keywords: easy, feature
Version: LatestFlags: bugzilla: maintainer-feedback? (bdrewery)
Hardware: Any   
OS: Any   
URL: https://forums.freebsd.org/threads/poudriere-web-interface-via-obhttpd-openbsd-httpd.73697/
Attachments:
Description Flags
OpenBSD httpd(8) example configuration alster: maintainer-approval? (bdrewery)

Description Älven 2024-04-26 21:28:12 UTC

    
Comment 1 Älven 2024-04-26 21:31:28 UTC
Created attachment 250249 [details]
OpenBSD httpd(8) example configuration
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2024-04-27 08:25:17 UTC
Hello,

It seems that this config should be adapted for poudriere.

nginx.conf have:

---
server {
        listen 80 default;
        server_name server_domain_or_IP;
        root /usr/local/share/poudriere/html;

        location /data {
            alias /usr/local/poudriere/data/logs/bulk;
            autoindex on;
        }

        location /packages {
            root /usr/local/poudriere/data;
            autoindex on;
        }
    }
}
---

obhttpd.conf uses chroot that I don't know how to set it.

---
Apr 27 09:17:56 rpi4 obhttpd[93023]: server: proc_run: chroot: No such file or directory
Apr 27 09:17:56 rpi4 obhttpd[93024]: server: proc_run: chroot: No such file or directory
Apr 27 09:17:56 rpi4 obhttpd[93027]: startup
Apr 27 09:17:56 rpi4 obhttpd[93027]: parent: proc_open: imsg_flush: Broken pipe
Apr 27 09:17:56 rpi4 obhttpd[93026]: logger: proc_run: chroot: No such file or directory
Apr 27 09:17:56 rpi4 obhttpd[93025]: server: proc_run: chroot: No such file or directory
---
Comment 3 Älven 2024-04-27 11:57:28 UTC
I have it working in jail, may test without it now.
Comment 4 Tatsuki Makino 2024-04-27 20:15:53 UTC
(In reply to Nuno Teixeira from comment #2)

Hello.

I have a few thoughts about the httpd configuration files installed in /usr/local/share/examples/poudriere directory.

+ Provide a configuration that is equivalent to nginx for apache as well.
+ Configuration file for lighttpd should also be provided.
+ Include settings to distribute packages created by poudriere.

Especially if httpd can distribute packages, poudriere can be used better.
It allows poudriere to prefetch their own packages.
It eliminates the need to worry about the time difference from the port tree used by the official poudriere.

I have apache and lighttpd setup. But this isn't the place to do that, is it? :)