I have Nextcloud installed in docker. I have portainer. The issue is that I cannot change my Nextcloud to use HTTPS. I have seen previous support tickets but none of them fix my issue.
I do have a .pem and .key SSL cert file. The official guide only shows using apache, but I have no idea what it is and how to modify with it.
How can I enable HTTPS for my server?
Welcome.
Maybe here you can find some tricks for your instance, but the server is on Nginx not on Apache: [How-To] Nextcloud with swag (Letsencrypt) using OMV and docker-compose - Guides - openmediavault
Thank you for your reply.
I access NextCloud in two ways, localhost and Cloudflare Tunnel. I do not use any proxy or nginx, also my NextCloud has been installed on docker, so I don’t know how an I suppose to change the yaml file.
Which image specifically are you using? Please post your Compose (or, as I believe portainer calls it, your Stack).
We need more info to be helpful. There are numerous Docker images, for one. Some include HTTPS while others are for other use cases.
The official guide only shows using apache, but I have no idea what it is and how to modify with it.
In general, when it comes to the various Docker images, the best place for figuring out the infrastructure pieces (such as HTTPS) is to read the docs for the specific image you’re using.
This is the stack:
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=Bund7zXeVz7YnFknLGcnUjHtk #change this
- MYSQL_PASSWORD=HFdMe9rn5kf7A8Pqc8v86Pre5 #change this
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
restart: always
ports:
- 8888:80
links:
- db
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=HFdMe9rn5kf7A8Pqc8v86Pre5 #change this to match the mysql_password above
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
See https://github.com/nextcloud/docker/?tab=readme-ov-file#https---ssl-encryption the links therein.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.