Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
08becf7f
Commit
08becf7f
authored
Feb 24, 2018
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the hidden feature for proxying web requests now sets X-Forwarded-For
parent
5eb4a53d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
web_update.py
management/web_update.py
+4
-1
No files found.
CHANGELOG.md
View file @
08becf7f
...
...
@@ -5,6 +5,7 @@ In Development
--------------
*
Update Roundcube to version 1.3.4 and Z-Push to version 2.3.9.
*
The undocumented feature for proxying web requests to another server now sets X-Forwarded-For.
v0.26c (February 13, 2018)
--------------------------
...
...
management/web_update.py
View file @
08becf7f
...
...
@@ -149,7 +149,10 @@ def make_domain_config(domain, templates, ssl_certificates, env):
# any proxy or redirect here?
for
path
,
url
in
yaml
.
get
(
"proxies"
,
{})
.
items
():
nginx_conf_extra
+=
"
\t
location
%
s {
\n\t\t
proxy_pass
%
s;
\n\t
}
\n
"
%
(
path
,
url
)
nginx_conf_extra
+=
"
\t
location
%
s {"
%
path
nginx_conf_extra
+=
"
\n\t\t
proxy_pass
%
s;"
%
url
nginx_conf_extra
+=
"
\n\t\t
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"
nginx_conf_extra
+=
"
\n\t
}
\n
"
for
path
,
url
in
yaml
.
get
(
"redirects"
,
{})
.
items
():
nginx_conf_extra
+=
"
\t
rewrite
%
s
%
s permanent;
\n
"
%
(
path
,
url
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment