Bug 278600 - ports-mgmt/poudriere: Add OpenBSD httpd(8) example configuration
Summary: ports-mgmt/poudriere: Add OpenBSD httpd(8) example configuration
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bryan Drewery
URL: https://forums.freebsd.org/threads/po...
Keywords: easy, feature
Depends on:
Blocks:
 
Reported: 2024-04-26 21:28 UTC by Andrey Korobkov
Modified: 2024-04-27 20:15 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (bdrewery)


Attachments
OpenBSD httpd(8) example configuration (762 bytes, text/plain)
2024-04-26 21:31 UTC, Andrey Korobkov
alster: maintainer-approval? (bdrewery)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Korobkov 2024-04-26 21:28:12 UTC

    
Comment 1 Andrey Korobkov 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 Andrey Korobkov 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? :)