Commit 5cbb74bf authored by Boxiang Sun's avatar Boxiang Sun

peertube: do not use the fixed 127.0.0.1

parent 0ad44292
...@@ -82,7 +82,7 @@ promise = check_url_available ...@@ -82,7 +82,7 @@ promise = check_url_available
name = nginx_listen.py name = nginx_listen.py
config-host = [$${nginx-configuration:ip}] config-host = [$${nginx-configuration:ip}]
config-port = $${nginx-configuration:port} config-port = $${nginx-configuration:port}
config-url = https://$${:config-host}:$${:config-port} config-url = https://$${frontend:connection-domain}
[nginx-configuration] [nginx-configuration]
recipe = slapos.recipe.template recipe = slapos.recipe.template
...@@ -155,7 +155,7 @@ name = PeerTube Server Frontend ...@@ -155,7 +155,7 @@ name = PeerTube Server Frontend
# XXX We have hardcoded SR URL here. # XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true slave = true
config-url = $${nginx-listen-promise:config-url} config-url = https://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
return = domain secure_access return = domain secure_access
[publish-connection-parameter] [publish-connection-parameter]
......
...@@ -51,7 +51,7 @@ http { ...@@ -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; gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
upstream backend { upstream backend {
server 127.0.0.1:9000; server $${instance-parameter:ipv4-random}:9000;
} }
server { server {
......
listen: listen:
hostname: '127.0.0.1' hostname: '$${instance-parameter:ipv4-random}'
port: 9000 port: 9000
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL) # Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment