Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle ip behind proxies #914

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fc33876
move IP detection function to more global location
michield Jul 10, 2021
98ad57f
replace (almost) all REMOTE_ADDR with getClientIP(), so that it conti…
michield Jul 10, 2021
66bf671
Merge branch 'master' into handle_IP_behind_proxies
michield Oct 17, 2021
8676f77
cache the ip address found
michield Oct 20, 2021
02faef6
tidy up
michield Oct 20, 2021
dcff53c
detect proxy in hostname
michield Dec 13, 2022
bb458e6
Merge branch 'main' into handle_IP_behind_proxies
michield Dec 13, 2022
27c00fb
Allow config to set ADMIN_WWWROOT and USER_WWWROOT to bypass the URL …
michield Jul 27, 2023
3771d43
Merge branch 'main' into handle_IP_behind_proxies
michield Jul 27, 2023
a26eccf
add section to config_extended about the new values
michield Jul 27, 2023
0b472cd
fix publicBaseUrl initialisation, as functions and vars are not avail…
michield Jul 30, 2023
e5a17ad
default to http:// to make CI pass
michield Jul 30, 2023
b7e3265
define new global vars for user and admin base urls
michield Aug 28, 2023
d853540
keep the URL config method as before, but override the config when fe…
michield Aug 28, 2023
da74e1a
use new global adminBaseUrl
michield Aug 28, 2023
66a1a78
use intermediate config var for initialisation of the config URLs
michield Aug 28, 2023
7a36207
use new global adminBaseUrl
michield Aug 28, 2023
6cbfdec
update pageroot only when not set, and add explanation in config_exte…
michield Sep 4, 2023
a1e9bc3
fix some more links with the new global var
michield Sep 4, 2023
0b36b40
remove obsolete line
michield Sep 4, 2023
0dadc39
fix typo
michield Sep 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix publicBaseUrl initialisation, as functions and vars are not avail…
…able yet
  • Loading branch information
michield committed Jul 30, 2023
commit 0b472cd1b421fd6c3312e18f288a0347e28019f3
2 changes: 1 addition & 1 deletion public_html/lists/admin/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@
} else {
$pageroot = '/lists';
}
$publicBaseUrl = $GLOBALS['public_scheme']."://".hostName()."/$pageroot";
$publicBaseUrl = "https://[WEBSITE]/$pageroot";
}

// as the "admin" in adminpages is hardcoded, don't put it in the config file
Expand Down