Get IPv6 really running

This commit is contained in:
AaronDewes 2022-05-14 08:29:51 +00:00
parent 12ca6c8de6
commit 8601e17756
3 changed files with 6 additions and 4 deletions

View File

@ -114,6 +114,7 @@ services:
ipv6_address: $LND_IP6
dashboard:
container_name: dashboard
command: serve -l 'tcp://[$DASHBOARD_IP6]:80' --single /dist
image: ghcr.io/runcitadel/dashboard:v0.0.11@sha256:a1aac1c2fe3dc5a9604e5ec1ab9db0cc8f21d6c2b90f12898750bcb2c3b835f3
restart: on-failure
stop_grace_period: 1m30s

2
scripts/configure vendored
View File

@ -361,7 +361,7 @@ for template_path, output_path in templates_to_build.items():
if output_path == "./nginx/nginx.conf" and os.path.isfile(output_path):
with open("./nginx/nginx.conf", "r") as file:
originalNginx = file.read()
newNginx = originalNginx.replace("10.21.21.3", "[{}]".format(DASHBOARD_IP6))
newNginx = originalNginx.replace("10.21.21.3:3004", "[{}]:80".format(DASHBOARD_IP6))
with open("./nginx/nginx.conf", "w") as file:
file.write(newNginx)
continue

View File

@ -21,18 +21,19 @@ http {
server {
listen 80;
listen [::1]:80;
location /api/ {
proxy_pass http://[<middleware-ip6>]:3005/;
proxy_pass http://<middleware-ip>:3005/;
}
location /manager-api/ {
proxy_pass http://[<manager-ip6>]:3006/;
proxy_pass http://<manager-ip>:3006/;
}
# dashboard (old)
location / {
proxy_pass http://[<dashboard-ip6>]:3004/;
proxy_pass http://<dashboard-ip6>:80/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";