Open gthieleb opened 1 year ago
I haven't used nextcloud with traefik yet, so I've set this to "help wanted" for others in the community to give their experience. Some minor follow up questions though:
Don't traefik and nginx-ingress both manage ingresses? Are you having traefik route into nginx-ingress and then into the services?
Describe your Issue
I am having an error resolving the remote address. My setup is in my homelab on a qnap NAS using a nondefault port for ingres (nginx)/lb (traefik) and natted from outside using the same port.
Logs and Errors
Error message
Describe your Environment
k3s 1.21 (shipped with qnap)
Chart.yaml:
Helm Version (or App that manages helm):
Helm Chart Version:
values.yaml
:nextcloud: image: flavor: fpm nginx: enabled: true enabled: true nextcloud: host: example.com env: NEXTCLOUD_TRUSTED_DOMAINS: "example.com" configs: custom.config.php: |- <?php $CONFIG = array ( 'default_phone_region' => 'DE', 'trusted_proxies' => array( 0 => '127.0.0.1', 1 => '10.0.0.0/8' ), 'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'), ); internalDatabase: enabled: false externalDatabase: enabled: true type: postgresql postgresql: enabled: true primary: persistence: enabled: true persistence: enabled: true nextcloudData: enabled: true size: 32Gi # Can be extended later phpClientHttpsFix: enabled: true protocol: https ingress: enabled: true className: nginx tls:
hosts:
annotations: nginx.ingress.kubernetes.io/proxy-body-size: 4G kubernetes.io/tls-acme: "false" cert-manager.io/cluster-issuer: letsencrypt-stage nginx.ingress.kubernetes.io/enable-cors: "false" nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For" nginx.ingress.kubernetes.io/server-snippet: |- proxy_hide_header X-Powered-By; rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last; rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last; rewrite ^/.well-known/host-meta /public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
rewrite ^/.well-known/caldav /remote.php/dav/ redirect; rewrite ^/.well-known/carddav /remote.php/dav/ redirect;
Additional context, if any