Skip to content

Commit

Permalink
feat(nginx): add listening address option
Browse files Browse the repository at this point in the history
  • Loading branch information
mdallaire committed Sep 25, 2024
1 parent feaf104 commit 88c554a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 6.0.3
version: 6.1.0
appVersion: 30.0.0
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
1 change: 1 addition & 0 deletions charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ The following table lists the configurable parameters of the nextcloud chart and
| `nginx.image.pullPolicy` | nginx Image pull policy | `IfNotPresent` |
| `nginx.image.pullPolicy` | nginx Image pull policy | `IfNotPresent` |
| `nginx.containerPort` | Customize container port e.g. when not running as root | `IfNotPresent` |
| `nginx.listenAddress` | Customize container listening address ("[::]" when using IPv6) | `IfNotPresent` |
| `nginx.config.default` | Whether to use nextcloud's recommended nginx config | `true` |
| `nginx.config.custom` | Specify a custom config for nginx | `{}` |
| `nginx.resources` | nginx resources | `{}` |
Expand Down
4 changes: 2 additions & 2 deletions charts/nextcloud/files/nginx.config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ upstream php-handler {
}

server {
listen {{ .Values.nginx.containerPort }};
listen {{ .Values.nginx.listenAddress}}:{{ .Values.nginx.containerPort }};

# HSTS settings
# WARNING: Only add the preload option once you read about
Expand Down Expand Up @@ -48,7 +48,7 @@ server {
include mime.types;
types {
text/javascript js mjs;
}
}

# Path to the root of your installation
root /var/www/html;
Expand Down
1 change: 1 addition & 0 deletions charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ nginx:
pullPolicy: IfNotPresent

containerPort: 80
listenAddress: 0.0.0.0

config:
# This generates the default nginx config as per the nextcloud documentation
Expand Down

0 comments on commit 88c554a

Please sign in to comment.