mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #282] No redirect with Nexcloud using https #251
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#251
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MarAlMe on GitHub (Jan 27, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/282
I use the proxy manager for several web applications. All can be reached internally in the network via http and are made accessible via the proxy manager via https.
When I go to the Nextcloud page, the logon screen appears, but nothing happens after that. If I refresh the page, I will be forwarded to my files, etc.
When I go to the Nextcloud page via http both internally and externally, the forwarding works without any problems after login. Other web applications do not have this problem. I have already tried to enter the IP of the proxy manager (same host, all services run as docker container) in the config.php of the Nextcloud under trusted_proxies, unfortunately without success.
@jc21 commented on GitHub (Jan 27, 2020):
Are you proxying with SSL?
Is the Websocket option turned on for this proxy host?
Is nextcloud also running with SSL?
What version/docker image of nextcloud are you using?
Are there any Javascript console errors after logging in?
I don't use nextcloud but I just spun up a fresh instance, using NPM for SSL termination and pure http for the nextcloud instance. I ran through the setup process no problem, then logged out and now the login won't let me in with my 100% valid password. Even with the wrong credentials it is doing the same thing, redirecting me back to login. Unlike you though, my refresh doesn't get me in.
@MarAlMe commented on GitHub (Jan 28, 2020):
I´ve configured the NPM as shown:
I using the latest Version of Docker and Nextcloud (i reinstalled the Server two weeks ago).
I get this, when i try to login:
And this, after i reload the site:
I started and configured the Nextcloud Container befor i had run the NPM Container. Today i had run an complete new Nexcloud Container and make the setup over the external https Url, but i got the same behavior.
In the past I had configured a Nginx as a proxy and the login worked without any problems. Since I don't want to write different .conf files again, I wanted to use the NPM.
@jc21 commented on GitHub (Jan 29, 2020):
Interesting that the login request shows as cancelled. That config all looks ok but I would probably turn off caching assets, in case these third party apps somehow change their images or js between requests. It's uncommon but worth a try.
Do you have your old nginx config, we might be able to compare options?
@MarAlMe commented on GitHub (Jan 29, 2020):
Without caching assets i got no luck. Yeah, here´s my old config:
@damianog commented on GitHub (Mar 27, 2020):
Have a look at #340 and try if it solve this issue too?
@MarAlMe commented on GitHub (Apr 19, 2020):
Adding 'overwriteprotocol' => 'https' to Nextcloud's config.php solved the problem.