Skip to content
Snippets Groups Projects
Commit f63271c5 authored by Ana Aviles's avatar Ana Aviles
Browse files

Merge branch '235-nextcloud-security-and-setup-warnings-2' into 'master'

Add nginx config to nextcloud values

Closes #235

See merge request openappstack/openappstack!54
parents 5b2a4ee1 ab4e28fc
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ ci_test_image:
DOCKER_DRIVER: overlay2
image: docker:stable
services:
- docker:dind
- docker:18-dind # FIXME This is an older version of DIND. Update when gitlab-runner fixes https://gitlab.com/gitlab-org/gitlab-runner/issues/4501
before_script:
- docker info
script:
......
......@@ -10,6 +10,26 @@ nextcloud:
kubernetes.io/tls-acme: "true"
# Set max body size high to allow big NextCloud uploads
nginx.ingress.kubernetes.io/proxy-body-size: 1G
nginx.ingress.kubernetes.io/server-snippet: |-
server_tokens off;
proxy_hide_header X-Powered-By;
rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
try_files $uri /index.php$request_uri;
}
hosts:
- "files.{{ .Environment.Values.domain }}"
tls:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment