Running bsdstats through a proxy

Olivier Nicole olivier2553 at gmail.com
Fri Jan 5 03:50:28 UTC 2018


Marc,

On a new machine (FreeBSD 11.1-RELEASE-p6) with bsdstats-6.0_2, I see:

The machine contacts the proxy with: HEAD.http://rpt.bsdstats.org/.
Reply: HTTP/1.0.302Moved.Temporarily

Then the machine contacts the proxy with: GET.http://rpt.bsdstats.org/sc
Reply: HTTP/1.0.500.Internal.Server

Best regards,

Olivier

On Fri, Jan 5, 2018 at 8:24 AM, Marc G Fournier <scrappy at hub.org> wrote:
>
> You should be able to just add them to /etc/periodic.conf … bsdstats on FreeBSD will read its environment variables from there …
>
>
>
>> On Nov 14, 2017, at 23:45, Matthew Seaman <matthew at FreeBSD.org> wrote:
>>
>> On 15/11/2017 05:19, Olivier wrote:
>>> Hi,
>>>
>>> I would like to enable bsdstats to run, but I need to configure a proxy.
>>>
>>> I see it rely on the environment variable HTTP_PROXY, but where should I
>>> define it so that it is used by the monthly periodic script and by
>>> bsdstats launched at boot?
>>>
>>> TIA,
>>>
>>> Olivier
>>>
>>
>> /etc/login.conf should work for you.  You can add whatever environment
>> settings you want to the  :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ line.
>>
>> Remember to run 'cap_mkdb /etc/login.conf' after editing the file.
>>
>>       Cheers,
>>
>>       Matthew
>>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list