-
Notifications
You must be signed in to change notification settings - Fork 126
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
Force https using owncloud/server:10.0.3 #30
Comments
There is no option for that yet, most people are anyway running it behind a reverse proxy that handles the SSL termination and SSL enforcement. |
i use reverse proxy and it does the job |
Could you help me out here? Below are the two docker-compose files I am using to start the nginx-proxy as well as owncloud. I am obviously missing something as I only get 503 when connecting on port 80 and nothing at all on port 443.
|
You must put the certificates in jwilder/nginx-proxy and in ownlcoud owncloud:
Don´t forget of VIRTUAL_PROTO=https and VIRTUAL_PORT=443 jwilder/nginx-proxy:
Also, don´t forget to change client_max_body_size in nginx.conf Hope it helps |
I can't really say something to this nginx-proxy, I personally and we at ownCloud are usually using https://traefik.io/ as a reverse proxy. But sounds like sfmarques gave some hints. |
It looks very interesting, I'll definitely take a look.... |
Thanks everyone - got it working. Also thank you for the traefik.io mention. Didn't know that before. |
We won't enforce HTTPS within this image for now, so I'm closing this issue. |
I am running owncloud/server:latest and am looking for a way to force https (i.e. redirect all port 80 requests to 443).
Is there a way without building a custom image on top of owncloud/server that configures the redirect via apache?
The text was updated successfully, but these errors were encountered: