Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
41b35baa
Commit
41b35baa
authored
Oct 18, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/supervisord: add option to enable inet http server instead of unix socket
parent
c60f6369
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
stack/supervisord/buildout.hash.cfg
stack/supervisord/buildout.hash.cfg
+2
-2
stack/supervisord/supervisord.conf.in
stack/supervisord/supervisord.conf.in
+8
-1
stack/supervisord/supervisord.jinja2.in
stack/supervisord/supervisord.jinja2.in
+5
-1
No files found.
stack/supervisord/buildout.hash.cfg
View file @
41b35baa
...
...
@@ -14,8 +14,8 @@
# not need these here).
[supervisord-library]
_update_hash_filename_ = supervisord.jinja2.in
md5sum =
69b73a768ae017072d252e6e7110920
4
md5sum =
8a88dfc33515da2cc51a9a6d865dc2d
4
[supervisord-conf]
_update_hash_filename_ = supervisord.conf.in
md5sum =
d624f65151233493c6dbdafa83ae8cbd
md5sum =
9a01551241cab7b3fd34d0f5325fccb6
stack/supervisord/supervisord.conf.in
View file @
41b35baa
{% set server_url = "unix://" ~ parameter_dict['socket-path'] -%}
{% if parameter_dict['ipv4'] and parameter_dict['port'] -%}
{% set server_url = "http://" ~ parameter_dict['ipv4'] ~ ":" ~ parameter_dict['port'] -%}
[inet_http_server]
port={{ parameter_dict['ipv4'] }}:{{ parameter_dict['port'] }}
{% else-%}
[unix_http_server]
file = {{ parameter_dict['socket-path'] }}
chmod=0700
{% endif %}
[include]
files = {{ parameter_dict['include-dir'] }}/*.conf
[supervisorctl]
serverurl =
unix://{{ parameter_dict['socket-path']
}}
serverurl =
{{ server_url
}}
[supervisord]
loglevel = {{ parameter_dict['log-level'] }}
...
...
stack/supervisord/supervisord.jinja2.in
View file @
41b35baa
...
...
@@ -2,7 +2,9 @@
name,
buildout_bin_directory,
supervisord_conf,
use_service_hash=False
use_service_hash=False,
ipv4='',
port=''
) -%}
[controller-directory]
...
...
@@ -19,6 +21,8 @@ include-dir = ${controller-directory:supervisord}
log-file = ${controller-directory:log}/supervisord-{{ name }}.log
log-level = info
pid-file = ${controller-directory:run}/supervisord-{{ name }}.pid
ipv4 = {{ ipv4 }}
port = {{ port }}
[supervisord-controller-conf]
recipe = slapos.recipe.template:jinja2
...
...
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