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
Léo-Paul Géneau
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
Show 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]
filename = instance.cfg.in
md5sum =
eb4c69df9a8dbb94fb76d0a6c11e360
f
md5sum =
509605f8222f92aa62b6cb4a078a78d
f
[template-nginx-configuration]
filename = template-nginx.cfg.in
...
...
@@ -8,4 +8,4 @@ md5sum = 022e4b53e1b2db16c4e518fe76f638fa
[template-nginx]
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 =
extends = ${monitor-template:rendered}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[directory]
recipe = slapos.cookbook:mkdirectory
...
...
@@ -40,8 +37,8 @@ output = $${directory:etc}/nginx.cfg
mode = 0600
access-log = $${directory:log}/nginx-access.log
error-log = $${directory:log}/nginx-error.log
ip = $${slap-
network-information:global-ipv6
}
local-ip = $${slap-
network-information:local-ipv4
}
ip = $${slap-
configuration:ipv6-random
}
local-ip = $${slap-
configuration:ipv4-random
}
port = 9443
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}
offline = true
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default =
$${:nginx}
nginx = $${dynamic-template-nginx:rendered
}
recipe = slapos.cookbook:s
witch-s
oftwaretype
default =
dynamic-template-nginx:rendered
RootSoftwareInstance = $${:default
}
[dynamic-template-nginx]
recipe = slapos.recipe.template:jinja2
...
...
@@ -17,20 +17,10 @@ template = ${template-nginx:output}
rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename}
filename = instance-nginx.cfg
[slap-connection]
computer-id = $${slap_connection:computer_id}
partition-id = $${slap_connection:partition_id}
server-url = $${slap_connection:server_url}
software-release-url = $${slap_connection:software_release_url}
key-file = $${slap_connection:key_file}
cert-file = $${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}
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
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