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
Boxiang Sun
slapos
Commits
5cbb74bf
Commit
5cbb74bf
authored
Oct 27, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: do not use the fixed 127.0.0.1
parent
0ad44292
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
software/peertube/instance.cfg.in
software/peertube/instance.cfg.in
+2
-2
software/peertube/template-nginx.cfg.in
software/peertube/template-nginx.cfg.in
+1
-1
software/peertube/template-peertube.yaml.in
software/peertube/template-peertube.yaml.in
+1
-1
No files found.
software/peertube/instance.cfg.in
View file @
5cbb74bf
...
...
@@ -82,7 +82,7 @@ promise = check_url_available
name = nginx_listen.py
config-host = [$${nginx-configuration:ip}]
config-port = $${nginx-configuration:port}
config-url = https://$${
:config-host}:$${:config-port
}
config-url = https://$${
frontend:connection-domain
}
[nginx-configuration]
recipe = slapos.recipe.template
...
...
@@ -155,7 +155,7 @@ name = PeerTube Server Frontend
# XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
config-url =
$${nginx-listen-promise:config-url
}
config-url =
https://[$${nginx-configuration:ip}]:$${nginx-configuration:port
}
return = domain secure_access
[publish-connection-parameter]
...
...
software/peertube/template-nginx.cfg.in
View file @
5cbb74bf
...
...
@@ -51,7 +51,7 @@ http {
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
upstream backend {
server
127.0.0.1
:9000;
server
$${instance-parameter:ipv4-random}
:9000;
}
server {
...
...
software/peertube/template-peertube.yaml.in
View file @
5cbb74bf
listen:
hostname: '
127.0.0.1
'
hostname: '
$${instance-parameter:ipv4-random}
'
port: 9000
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
...
...
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