Skip to content

Commit eedac14

Browse files
authored
web: add ability to disable IPv6
1 parent af6f3ac commit eedac14

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ JIBRI_LOGS_DIR=/config/logs
352352
# Necessary for Let's Encrypt, relies on standard HTTPS port (443)
353353
#ENABLE_HTTP_REDIRECT=1
354354

355+
# Enable IPv6
356+
# Provides means to disable IPv6 in environments that don't support it (get with the times, people!)
357+
#ENABLE_IPV6=1
358+
355359
# Container restart policy
356360
# Defaults to unless-stopped
357361
RESTART_POLICY=unless-stopped

web/rootfs/defaults/default

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
server {
22
listen 80 default_server;
3+
4+
{{ if .Env.ENABLE_IPV6 | default "1" | toBool }}
35
listen [::]:80 default_server;
6+
{{ end }}
47

58
{{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
69
return 301 https://$host$request_uri;
@@ -12,7 +15,10 @@ server {
1215
{{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
1316
server {
1417
listen 443 ssl http2;
18+
19+
{{ if .Env.ENABLE_IPV6 | default "1" | toBool }}
1520
listen [::]:443 ssl http2;
21+
{{ end }}
1622

1723
include /config/nginx/ssl.conf;
1824
include /config/nginx/meet.conf;

0 commit comments

Comments
 (0)