Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
0b4d926b
Commit
0b4d926b
authored
7 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Fix Nginx conf setup if worker IP is 127.0.0.1.
parent
204640c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2.Common_services/5.Nginx/0_setup.py
+2
-2
2 additions, 2 deletions
2.Common_services/5.Nginx/0_setup.py
with
2 additions
and
2 deletions
2.Common_services/5.Nginx/0_setup.py
+
2
−
2
View file @
0b4d926b
...
@@ -48,11 +48,11 @@ def setup(interactive=True):
...
@@ -48,11 +48,11 @@ def setup(interactive=True):
if
os
.
path
.
exists
(
'
/home/msuser/msinstance
'
):
if
os
.
path
.
exists
(
'
/home/msuser/msinstance
'
):
need_uwsgi
=
True
need_uwsgi
=
True
server_name
=
utils
.
get_conf
(
'
MS_SERVER_NAME
'
)
or
'
mediaserver
'
server_name
=
utils
.
get_conf
(
'
MS_SERVER_NAME
'
)
or
'
mediaserver
'
worker_ips
=
utils
.
get_conf
(
'
CELERITY_WORKER_IP
'
)
or
'
127.0.1.1
'
worker_ips
=
utils
.
get_conf
(
'
CELERITY_WORKER_IP
'
)
or
''
whitelist
=
''
whitelist
=
''
for
worker_ip
in
worker_ips
.
split
(
'
,
'
):
for
worker_ip
in
worker_ips
.
split
(
'
,
'
):
worker_ip
=
worker_ip
.
strip
()
worker_ip
=
worker_ip
.
strip
()
if
worker_ip
:
if
worker_ip
and
worker_ip
!=
'
127.0.0.1
'
:
whitelist
+=
'
\n\t
%s 1;
'
%
worker_ip
whitelist
+=
'
\n\t
%s 1;
'
%
worker_ip
cmds
.
extend
(
vhost_write_cmds
(
dir_path
,
'
mediaserver-msuser
'
,
server_name
,
cmds
.
extend
(
vhost_write_cmds
(
dir_path
,
'
mediaserver-msuser
'
,
server_name
,
secret
=
utils
.
get_conf
(
'
MS_SECRET
'
)
or
'
secret
'
,
whitelist
=
whitelist
))
secret
=
utils
.
get_conf
(
'
MS_SECRET
'
)
or
'
secret
'
,
whitelist
=
whitelist
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment