Skip to content

AWS Application Balancer with Nextcloud #910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
techc0de opened this issue Feb 21, 2021 · 2 comments
Closed

AWS Application Balancer with Nextcloud #910

techc0de opened this issue Feb 21, 2021 · 2 comments

Comments

@techc0de
Copy link

techc0de commented Feb 21, 2021

Hi all,

I'm currently using NPM for my services on AWS with ALB.
Nextcloud and other web services are working fine.
I also configured the Nextcloud config.php with 'overwriteprotocol' => 'https' .
However, I have to enter like this: https://nextcloud.mydomain.com to get the the Nextcloud site.
If I enter just: nextcloud.mydomain.com, it would not redirect to Nextcloud.
It does not auto redirect from HTTP to HTTPS.
I'm using only HTTP as my listener for the ALB.

environment setup:
Docker:
NPM: 80:80; 443:443
http://172.17.0.1:81

Nextcloud (Linuxserver.io): 4443:443; 8080:80
https://172.17.0.1:4443

Am I missing something ?

@p-fruck
Copy link

p-fruck commented May 3, 2021

Hi,
I don't know about your proxy configuration, but when you configure a proxy redirection host, you need to select the option 'force ssl redirection'. I case you redirected to your nextcloud using a custom location, there's currently a bug that can be worked around as described here

@techc0de
Copy link
Author

techc0de commented May 4, 2021

I found the issue.
I was using the Load Balancer and one of the Security Group didn't allow direct access to port 80.
So by allowed it direct access both to ports 80, and 443, it worked.

@techc0de techc0de closed this as completed May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants