From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Nextcloud-24.0.7 and proxy settings
Date: Tue, 21 Feb 2023 10:55:59 +0100 [thread overview]
Message-ID: <12172646.O9o76ZdvQC@iris> (raw)
In-Reply-To: <3039109.Mh6RI2rZIc@zeus>
On Sunday, February 19, 2023 1:17:41 PM CET Alexander Puchmayr wrote:
> Hi there,
>
> I'm trying to setup a nextcloud instance inside a DMZ that has no direct
> connection to the outside world, only via proxy. The proxy itself is working
> fine, but I fail to configure nextcloud to actually use this proxy.
>
> According to the docs, I tried setting the proxy field in config/config.php,
> i.e.
>
> <?php
> $CONFIG = array (
> ...
> 'proxy' => '10.46.1.109:3128',
> 'proxyuserpwd' => '',
> ...
> );
>
> But this setting seems to be ignored, tcpdump does not show any connection
> attempt to that ip and nextcloud complains that it cannot connect to the
> internet.
>
> In another forum I found that in
> /etc/apache2/vhosts.d/10_nextcloud_vhosts.conf, environment variables like
> HTTP_PROXY and HTTPS_PROXY may be set, i.e.
>
> <VirtualHost *:80>
> ...
> SetEnv HTTP_PROXY 10.46.1.109:3128
> SetEnv HTTPS_PROXY 10.46.1.109:3128
> ...
> </VirtualHost>
>
> But this also does not seem to work.
>
> Any other ideas?
If using "fpm-php", add the following to your config:
env[HTTP_PROXY] = 10.46.1.109:3128
env[HTTPS_PROXY] = 10.46.1.109:3128
I have this in:
/etc/php/fpm-php8.1/site.conf
After this, run:
/etc/init.d/fpm-php restart
This is how I got it working on my end.
--
Joost
next prev parent reply other threads:[~2023-02-21 9:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-19 12:17 [gentoo-user] Nextcloud-24.0.7 and proxy settings Alexander Puchmayr
2023-02-21 9:55 ` J. Roeleveld [this message]
2023-02-25 10:02 ` [gentoo-user] [SOLVED] " Alexander Puchmayr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12172646.O9o76ZdvQC@iris \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox