Closed e-minguez closed 3 years ago
Hi @e-minguez,
Can you try to remove the USE_CLIENT_CACHE=yes env var ?
Hi @e-minguez,
Can you try to remove the USE_CLIENT_CACHE=yes env var ?
Aaaaaaaaaaaaaaand it works! 🏅 What kind of wizardy does that variable?
It sends the Cache-Control header to the client and enables ETag by default. I think ETag is the culprit. We should auto disable it when USE_REVERSE_PROXY=yes and USE_CLIENT_CACHE=yes.
Thank you
It sends the Cache-Control header to the client and enables ETag by default. I think ETag is the culprit. We should auto disable it when USE_REVERSE_PROXY=yes and USE_CLIENT_CACHE=yes.
Do you want me to close the issue or you want to keep it to make that modification?
Thanks again!
Let's keep it open as a reminder :).
Hello @e-minguez,
Since v1.2.4, the USE_CLIENT_CACHE=yes should now be safe to use in combination with USE_REVERSE_PROXY=yes. Thanks for reporting this.
I'm trying to use bunkerized-nginx as a reverse proxy for nextcloud and for home-assistant.
Home assistant works fine but I'm not able to use it as reverse proxy for nextcloud. Let me try to ellaborate. The nextcloud client and webdav works fine, but the web ui doesn't load all the assets as it should and I cannot log in.
It looks like it is trying to serve them from
/etc/nginx/html/
instead of the proper file path.The bunkerized-nginx container logs say:
I'm not using docker or docker-compose but podman (and I guess this is irrelevant).
The container is executed as:
The environment file looks like:
The custom server conf is just to enable the
/.well-known
addresses as per nextcloud documentation https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html#nginxI've tried to remove as many as features as possible to try to debug the issue but no dice.
The current nextcloud is running in its own container and running with a regular nginx in front. The
nginx.conf
looks like (it is https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf):The nextcloud config.php relevant lines look like:
Any help?
Thanks!