Skip to content

Docker: Use Apache remoteip - #3226

Merged
Alkarex merged 1 commit into
FreshRSS:masterfrom
Alkarex:remoteip
Oct 16, 2020
Merged

Alkarex merged 1 commit into
FreshRSS:masterfrom
Alkarex:remoteip

Conversation

@Alkarex

@Alkarex Alkarex commented Oct 14, 2020

Copy link
Copy Markdown
Member

@Alkarex Alkarex added this to the 1.18.0 milestone Oct 14, 2020
@Alkarex

Alkarex commented Oct 14, 2020 •

Copy link
Copy Markdown
Member Author

@tonitonae Would you be able to test this PR?
The Docker image needs to be built manually until it lands in our main branch:

git clone https://github.com/FreshRSS/FreshRSS.git
cd FreshRSS
git pull https://github.com/Alkarex/FreshRSS.git remoteip
docker build --pull --tag freshrss/freshrss:dev -f Docker/Dockerfile .

@tonitonae

Copy link
Copy Markdown
Contributor

Not working for me. Still showing the internal IP:

FreshRSS[29]: [xxxxx] [Wed, 14 Oct 2020 23:15:24 +0200] [warning] --- Password mismatch for user=test, nonce=, c=$2a$04$FFVv.g2Hxrjw62lGbnsq2eaSO6erQvQJuA7ubjzuvSBInwf1qPvcu
172.18.0.1 - - [14/Oct/2020:23:15:24 +0200] "POST /i/?c=auth&a=login HTTP/1.1" 403 5952 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0"

Sorry...

@Alkarex

Alkarex commented Oct 15, 2020

Copy link
Copy Markdown
Member Author

Sorry, checking out the proper branch was lacking in my instructions:

git pull https://github.com/Alkarex/FreshRSS.git remoteip

@tonitonae

Copy link
Copy Markdown
Contributor

Yes, did not realize neither.

Tested and working here. Thanks!

@Alkarex
Alkarex merged commit 9ab05c7 into FreshRSS:master Oct 16, 2020
@Alkarex
Alkarex deleted the remoteip branch October 16, 2020 07:25
@Alkarex Alkarex mentioned this pull request Jan 3, 2021
@Alkarex Alkarex added the Docker 🐋 Everything related to Docker label Jan 22, 2021
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Jul 26, 2023
Fix FreshRSS#5502
Follow-up of FreshRSS#3226

New environment variable `TRUSTED_PROXY`: set to 0 to disable, or to a list of trusted IP ranges compatible with https://httpd.apache.org/docs/current/mod/mod_remoteip.html#remoteiptrustedproxy

New internal environment variable `CONN_REMOTE_ADDR` to remember the true IP address of the connection (e.g. last proxy), even when using mod_remoteip.

Current working setups should not observe any significant change.
@Alkarex Alkarex mentioned this pull request Jul 26, 2023
@Alkarex

Alkarex commented Jul 26, 2023

Copy link
Copy Markdown
Member Author

Reworked in #5549
Tests welcome

Alkarex added a commit that referenced this pull request Jul 30, 2023
* Rework trusted proxies
Fix #5502
Follow-up of #3226

New environment variable `TRUSTED_PROXY`: set to 0 to disable, or to a list of trusted IP ranges compatible with https://httpd.apache.org/docs/current/mod/mod_remoteip.html#remoteiptrustedproxy

New internal environment variable `CONN_REMOTE_ADDR` to remember the true IP address of the connection (e.g. last proxy), even when using mod_remoteip.

Current working setups should not observe any significant change.

* Minor whitespace

* Safer trusted sources during install
Rework of #5358
#5357

* Minor readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docker 🐋 Everything related to Docker Security 🛡️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log of unsuccessful login attempts with external IP

2 participants