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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
slapos
Commits
4d378b92
Commit
4d378b92
authored
Aug 02, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/nginx-push-stream: use switch-softwaretype
softwaretype recipe is deprecated
parent
430b1b86
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
27 deletions
+14
-27
software/nginx-push-stream/buildout.hash.cfg
software/nginx-push-stream/buildout.hash.cfg
+2
-2
software/nginx-push-stream/instance-nginx.cfg.in
software/nginx-push-stream/instance-nginx.cfg.in
+2
-5
software/nginx-push-stream/instance.cfg.in
software/nginx-push-stream/instance.cfg.in
+10
-20
No files found.
software/nginx-push-stream/buildout.hash.cfg
View file @
4d378b92
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
eb4c69df9a8dbb94fb76d0a6c11e360
f
md5sum =
509605f8222f92aa62b6cb4a078a78d
f
[template-nginx-configuration]
[template-nginx-configuration]
filename = template-nginx.cfg.in
filename = template-nginx.cfg.in
...
@@ -8,4 +8,4 @@ md5sum = 022e4b53e1b2db16c4e518fe76f638fa
...
@@ -8,4 +8,4 @@ md5sum = 022e4b53e1b2db16c4e518fe76f638fa
[template-nginx]
[template-nginx]
filename = instance-nginx.cfg.in
filename = instance-nginx.cfg.in
md5sum =
a3e1e8638c6078b0d3f60c304c2d70f7
md5sum =
565deec1e9678485cc8e542a54f5d076
software/nginx-push-stream/instance-nginx.cfg.in
View file @
4d378b92
...
@@ -6,9 +6,6 @@ parts =
...
@@ -6,9 +6,6 @@ parts =
extends = ${monitor-template:rendered}
extends = ${monitor-template:rendered}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[directory]
[directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
...
@@ -40,8 +37,8 @@ output = $${directory:etc}/nginx.cfg
...
@@ -40,8 +37,8 @@ output = $${directory:etc}/nginx.cfg
mode = 0600
mode = 0600
access-log = $${directory:log}/nginx-access.log
access-log = $${directory:log}/nginx-access.log
error-log = $${directory:log}/nginx-error.log
error-log = $${directory:log}/nginx-error.log
ip = $${slap-
network-information:global-ipv6
}
ip = $${slap-
configuration:ipv6-random
}
local-ip = $${slap-
network-information:local-ipv4
}
local-ip = $${slap-
configuration:ipv4-random
}
port = 9443
port = 9443
base-url = https://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
base-url = https://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
...
...
software/nginx-push-stream/instance.cfg.in
View file @
4d378b92
...
@@ -7,9 +7,9 @@ develop-eggs-directory = ${buildout:develop-eggs-directory}
...
@@ -7,9 +7,9 @@ develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
offline = true
[switch-softwaretype]
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:s
witch-s
oftwaretype
default =
$${:nginx}
default =
dynamic-template-nginx:rendered
nginx = $${dynamic-template-nginx:rendered
}
RootSoftwareInstance = $${:default
}
[dynamic-template-nginx]
[dynamic-template-nginx]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
@@ -17,20 +17,10 @@ template = ${template-nginx:output}
...
@@ -17,20 +17,10 @@ template = ${template-nginx:output}
rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename}
rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename}
filename = instance-nginx.cfg
filename = instance-nginx.cfg
[slap-connection]
[slap-configuration]
computer-id = $${slap_connection:computer_id}
recipe = slapos.cookbook:slapconfiguration
partition-id = $${slap_connection:partition_id}
computer = $${slap-connection:computer-id}
server-url = $${slap_connection:server_url}
partition = $${slap-connection:partition-id}
software-release-url = $${slap_connection:software_release_url}
url = $${slap-connection:server-url}
key-file = $${slap_connection:key_file}
key = $${slap-connection:key-file}
cert-file = $${slap_connection:cert_file}
cert = $${slap-connection:cert-file}
[instance-parameter]
# Fetches parameters defined in SlapOS Master for this instance.
# Always the same.
recipe = slapos.cookbook:slapconfiguration.serialised
computer = $${slap_connection:computer_id}
partition = $${slap_connection:partition_id}
url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
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