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
635f6ec4
Commit
635f6ec4
authored
Jul 29, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/nginx-push-stream: add a promise for nginx
parent
f3e733af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
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
+14
-0
software/nginx-push-stream/software.cfg
software/nginx-push-stream/software.cfg
+1
-0
software/nginx-push-stream/template-nginx.cfg.in
software/nginx-push-stream/template-nginx.cfg.in
+5
-0
No files found.
software/nginx-push-stream/buildout.hash.cfg
View file @
635f6ec4
...
@@ -4,8 +4,8 @@ md5sum = eb4c69df9a8dbb94fb76d0a6c11e360f
...
@@ -4,8 +4,8 @@ md5sum = eb4c69df9a8dbb94fb76d0a6c11e360f
[template-nginx-configuration]
[template-nginx-configuration]
filename = template-nginx.cfg.in
filename = template-nginx.cfg.in
md5sum =
1cff0aa9908d8ead05d9c8faef77d51f
md5sum =
b957c4cbaa4d5644688a38f1eca7a516
[template-nginx]
[template-nginx]
filename = instance-nginx.cfg.in
filename = instance-nginx.cfg.in
md5sum =
71daee817cb08834ab1502d01a9b96d0
md5sum =
4a8c49421c7a36901d3ab8c0b4a07769
software/nginx-push-stream/instance-nginx.cfg.in
View file @
635f6ec4
[buildout]
[buildout]
parts =
parts =
nginx-service
nginx-service
promises
publish-connection-information
publish-connection-information
extends = ${monitor-template:rendered}
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
offline = true
...
@@ -53,6 +56,17 @@ subscriber-allow-methods = 'GET, HEAD, OPTIONS'
...
@@ -53,6 +56,17 @@ subscriber-allow-methods = 'GET, HEAD, OPTIONS'
subscriber-allow-headers = 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since'
subscriber-allow-headers = 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since'
base-url = http://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
base-url = http://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
[promises]
recipe =
promises =
$${nginx-available-promise:recipe}
[nginx-available-promise]
<= monitor-promise-base
module = check_url_available
name = $${:_buildout_section_name_}.py
config-url = $${nginx-configuration:base-url}/status
[publish-connection-information]
[publish-connection-information]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
publisher-url = $${nginx-configuration:base-url}$${nginx-configuration:publisher-location-prefix}
publisher-url = $${nginx-configuration:base-url}$${nginx-configuration:publisher-location-prefix}
...
...
software/nginx-push-stream/software.cfg
View file @
635f6ec4
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
extends =
extends =
../../stack/slapos.cfg
../../stack/slapos.cfg
../../component/nginx/buildout.cfg
../../component/nginx/buildout.cfg
../../stack/monitor/buildout.cfg
./buildout.hash.cfg
./buildout.hash.cfg
parts =
parts =
...
...
software/nginx-push-stream/template-nginx.cfg.in
View file @
635f6ec4
...
@@ -70,6 +70,11 @@ server {
...
@@ -70,6 +70,11 @@ server {
return 204;
return 204;
}
}
location = /status {
default_type "text/plain";
return 200 'OK';
}
location $${nginx-configuration:publisher-location-prefix} {
location $${nginx-configuration:publisher-location-prefix} {
push_stream_publisher;
push_stream_publisher;
...
...
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