poudriere and web interface

Johan Hendriks joh.hendriks at gmail.com
Tue Sep 18 11:33:56 UTC 2018


Op 17-09-18 om 22:22 schreef Carmel NY:
> On a FreeBSD 11.2 system, I am trying to figure out how to configure
> poudriere to work with apache24. I found one "How To" on line that was
> useless. Does anyone have a working configuration that they can supply me
> with?
>

I use the following, the SetOutputFilter section is just for test.
This is our test site, so no SSL and so on.
I hope this helps you.
I have set this in /usr/local/etc/apache24/extra/httpd-vhosts.conf
Do not forget to uncomment the line Include
etc/apache24/extra/httpd-vhosts.conf in /usr/local/etc/apache24/httpd.conf

192.168.2.0 is our local network, we can see all.
For the outside we only publish the data dir to certain hosts like
123...../24 and 321....../24 so our poudriere is not used by the whole
world.

Good luck

<VirtualHost *:80>
    ServerName poudriere.yourdomain.nl
    DocumentRoot /usr/local/share/poudriere/html
    Alias /packages /usr/local/poudriere/data
    Alias /data /usr/local/poudriere/data/logs/bulk
    ErrorLog "/var/log/vhostlogs/poudriere-error.log"
    CustomLog "/var/log/vhostlogs/poudriere-access.log" common

    SetOutputFilter DEFLATE
    # example of how to compress ONLY html, plain text and xml
    AddOutputFilterByType DEFLATE text/plain text/html text/xml
    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary

    <Directory "/usr/local/share/poudriere/html">
        AllowOverride All
        Require ip 192.168.2.0/16
        Options Indexes FollowSymLinks
    </Directory>
    <Directory "/usr/local/poudriere/data">
        AllowOverride All
        Require ip 192.168.2.0/16
        Require ip 123.123.123.0/24
        Require ip 321.321.123.0/24
        Options Indexes FollowSymLinks
    </Directory>
    <Directory "/usr/local/poudriere/data/logs/bulk">
        AllowOverride All
        Require ip 192.168.2.0/16
        Options Indexes FollowSymLinks
    </Directory>
    LogLevel debug
</VirtualHost>

Regards
Johan Hendriks



More information about the freebsd-questions mailing list