Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
saemproject
saemref-formula
Commits
00fb74d8
Commit
00fb74d8
authored
Mar 23, 2017
by
Sylvain Thenault
Committed by
Philippe Pepiot
Apr 19, 2017
Browse files
Add option telling gunicorn to detect forwarded protocol whatever the proxy's ip
parent
ac349948
Changes
1
Hide whitespace changes
Inline
Side-by-side
saemref/files/saemref-supervisor.conf
View file @
00fb74d8
{%
from
"saemref/map.jinja"
import
saemref
with
context
-%}
{%
from
"saemref/map.jinja"
import
saemref
with
context
-%}
[
program
:
saemref
]
[
program
:
saemref
]
{%
if
saemref
.
instance
.
wsgi
-%}
{%
if
saemref
.
instance
.
wsgi
-%}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
gunicorn
'cubicweb.pyramid:wsgi_application()'
--
threads
{{
saemref
.
instance
.
wsgi_threads
}} --
workers
{{
saemref
.
instance
.
wsgi_workers
}} --
bind
0
.
0
.
0
.
0
:{{
saemref
.
instance
.
port
}}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
gunicorn
'cubicweb.pyramid:wsgi_application()'
--
forwarded
-
allow
-
ips
*
--
threads
{{
saemref
.
instance
.
wsgi_threads
}} --
workers
{{
saemref
.
instance
.
wsgi_workers
}} --
bind
0
.
0
.
0
.
0
:{{
saemref
.
instance
.
port
}}
{%
else
-%}
{%
else
-%}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
cubicweb
-
ctl
pyramid
-
D
{{
saemref
.
instance
.
name
}}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
cubicweb
-
ctl
pyramid
-
D
{{
saemref
.
instance
.
name
}}
{%
endif
-%}
{%
endif
-%}
...
@@ -14,7 +14,7 @@ startsecs=10
...
@@ -14,7 +14,7 @@ startsecs=10
[
program
:
saemref
-
oai
]
[
program
:
saemref
-
oai
]
{%
if
saemref
.
instance
.
wsgi
-%}
{%
if
saemref
.
instance
.
wsgi
-%}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
gunicorn
'cubicweb.pyramid:wsgi_application()'
--
threads
{{
saemref
.
instance
.
oai_threads
}} --
workers
1
--
bind
0
.
0
.
0
.
0
:{{
saemref
.
instance
.
oai_port
}}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
gunicorn
'cubicweb.pyramid:wsgi_application()'
--
forwarded
-
allow
-
ips
*
--
threads
{{
saemref
.
instance
.
oai_threads
}} --
workers
1
--
bind
0
.
0
.
0
.
0
:{{
saemref
.
instance
.
oai_port
}}
{%
else
-%}
{%
else
-%}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
cubicweb
-
ctl
pyramid
-
D
{{
saemref
.
instance
.
name
}}
command
=/
home
/{{
saemref
.
instance
.
user
}}/
venv
/
bin
/
cubicweb
-
ctl
pyramid
-
D
{{
saemref
.
instance
.
name
}}
{%
endif
-%}
{%
endif
-%}
...
...
Write
Preview
Supports
Markdown
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