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
f299825a
Commit
f299825a
authored
Aug 16, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in the nginx override YAML file, change how proxies are specified into a mapping
parent
04454b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
web_update.py
management/web_update.py
+2
-2
No files found.
management/web_update.py
View file @
f299825a
...
@@ -97,8 +97,8 @@ def make_domain_config(domain, template, template_for_primaryhost, env):
...
@@ -97,8 +97,8 @@ def make_domain_config(domain, template, template_for_primaryhost, env):
yaml
=
rtyaml
.
load
(
open
(
nginx_conf_custom_fn
))
yaml
=
rtyaml
.
load
(
open
(
nginx_conf_custom_fn
))
if
domain
in
yaml
:
if
domain
in
yaml
:
yaml
=
yaml
[
domain
]
yaml
=
yaml
[
domain
]
if
"proxy"
in
yaml
:
for
path
,
url
in
yaml
.
get
(
"proxies"
,
{})
.
items
()
:
nginx_conf
+=
"
\t
location
/ {
\n\t\t
proxy_pass
%
s;
\n\t
}
\n
"
%
yaml
[
"proxy"
]
nginx_conf
+=
"
\t
location
%
s {
\n\t\t
proxy_pass
%
s;
\n\t
}
\n
"
%
(
path
,
url
)
# Ending.
# Ending.
nginx_conf
+=
nginx_conf_parts
[
1
]
nginx_conf
+=
nginx_conf_parts
[
1
]
...
...
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