Comments (8)
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.
from server.
i use reverse proxy and it does the job
from server.
You must put the certificates in jwilder/nginx-proxy and in ownlcoud
owncloud:
docker run -d --name owncloud --restart=always --link mariadb:db --link redis:redis -e OWNCLOUD_DOMAIN=localhost -e VIRTUAL_HOST=cloud -e VIRTUAL_PROTO=https -e VIRTUAL_PORT=443 -e OWNCLOUD_DB_TYPE=mysql -e OWNCLOUD_DB_NAME=owncloud -e OWNCLOUD_DB_USERNAME=owncloud -e OWNCLOUD_DB_PASSWORD=owncloud -e OWNCLOUD_DB_HOST=db -e OWNCLOUD_ADMIN_USERNAME=admin -e OWNCLOUD_ADMIN_PASSWORD=admin -e OWNCLOUD_REDIS_ENABLED=true -e OWNCLOUD_REDIS_HOST=redis -v /cloud/data:/mnt/data:z -v /home/administrator/certs:/mnt/data/certs owncloud/server:10.0.2 && docker logs owncloud -f
Don´t forget of VIRTUAL_PROTO=https and VIRTUAL_PORT=443
jwilder/nginx-proxy:
docker run --name reverse_proxy -d -p 80:80 -p 443:443 --restart=always -v /home/administrator/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy && docker logs reverse_proxy -f
Also, don´t forget to change client_max_body_size in nginx.conf
Hope it helps
from server.
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.
from server.
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.
version: '3'
services:
owncloud:
image: owncloud/server:${VERSION}
restart: always
# ports:
# - ${HTTPS_PORT}:443
# - ${HTTP_PORT}:80
depends_on:
- db
- redis
environment:
- OWNCLOUD_DOMAIN=${DOMAIN}
- OWNCLOUD_DB_TYPE=mysql
- OWNCLOUD_DB_NAME=owncloud
- OWNCLOUD_DB_USERNAME=owncloud
- OWNCLOUD_DB_PASSWORD=owncloud
- OWNCLOUD_DB_HOST=db
- OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- OWNCLOUD_UTF8MB4_ENABLED=true
- OWNCLOUD_REDIS_ENABLED=true
- OWNCLOUD_REDIS_HOST=redis
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=443
- VIRTUAL_HOST=owncloud.domain.de
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/status.php"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./data:/mnt/data
db:
image: webhippie/mariadb:latest
restart: always
environment:
- MARIADB_ROOT_PASSWORD=owncloud
- MARIADB_USERNAME=owncloud
- MARIADB_PASSWORD=owncloud
- MARIADB_DATABASE=owncloud
- MARIADB_MAX_ALLOWED_PACKET=128M
- MARIADB_INNODB_LOG_FILE_SIZE=64M
- MARIADB_INNODB_LARGE_PREFIX=ON
- MARIADB_INNODB_FILE_FORMAT=Barracuda
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./mysql:/var/lib/mysql
redis:
image: webhippie/redis:latest
restart: always
environment:
- REDIS_MAXCONN=10000
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./redis:/var/lib/redis
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
from server.
It looks very interesting, I'll definitely take a look....
from server.
Thanks everyone - got it working. Also thank you for the traefik.io mention. Didn't know that before.
from server.
We won't enforce HTTPS within this image for now, so I'm closing this issue.
from server.
Related Issues (20)
- Dependency Dashboard
- Changes for same site cookies in 10.7 / 10.8 HOT 7
- SQLSTATE[HY000] [1045] Access denied for user 'owncloud'@'172.25.0.4' HOT 1
- [Security] JQuery 1.2 < 3.5.0 Multiple XSS HOT 3
- add a way to run the app instantly?
- Apache missing config variable HOT 1
- where can i get this owncloud.tar.bz2 file? HOT 2
- Does Quick Evaluation version support https accessible HOT 8
- Trusted domain does not work correctly HOT 2
- owncloud-server keeps restarting HOT 1
- unable to run with independent database HOT 9
- table prefix bug? HOT 3
- "trusted_doamins" cannot work anymore for docker container. HOT 2
- [QA] 22 deb package dependencies available HOT 1
- OWNCLOUD_SUB_URL when used, PropFind returns 405: Is files folder empty? HOT 3
- Server fails to write crash file HOT 12
- Unable to start with NFS storage: Cannot write into "config" directory HOT 2
- setting volume "/mnt/data" to path on host throws error "environment not properly prepared" on docker
- [QA] integrity checker fails in 10.13.1 HOT 3
- OWNCLOUD_TRUSTED_DOMAINS in docker configuration results in invalid access HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.