Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 2018 10:50:25 +0700
From:      Olivier Nicole <olivier2553@gmail.com>
To:        Marc G Fournier <scrappy@hub.org>
Cc:        Matthew Seaman <matthew@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: Running bsdstats through a proxy
Message-ID:  <CA+g+BviQwsoZ=EvrbriRJu+8rXAKnezpp3gBhBU=7ooEv0_VQg@mail.gmail.com>
In-Reply-To: <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org>
References:  <wu7y3n8w23g.fsf@banyan.cs.ait.ac.th> <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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@hub.org> wrote:
>
> You should be able to just add them to /etc/periodic.conf =E2=80=A6 bsdst=
ats on FreeBSD will read its environment variables from there =E2=80=A6
>
>
>
>> On Nov 14, 2017, at 23:45, Matthew Seaman <matthew@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=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK:\ l=
ine.
>>
>> Remember to run 'cap_mkdb /etc/login.conf' after editing the file.
>>
>>       Cheers,
>>
>>       Matthew
>>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CA+g+BviQwsoZ=EvrbriRJu+8rXAKnezpp3gBhBU=7ooEv0_VQg>