-
Notifications
You must be signed in to change notification settings - Fork 162
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
Having trouble setting up SSL #13
Comments
I have the same issue, I am going to try it with the following solution, it works with letsencrypt and a proxy: https://github.com/nextcloud/docker/tree/master/.examples Offcourse I need to modify it so it includes onlyoffice. I will let you know if I figured it out. EDIT: It would be nice if the creators created an example that makes use of letsencrypt. SSL is mandatory nowadays. |
strong agree!!!! i have been working for a couple days now to try to reconcile the setup in this repo with a setup that works with letsencrypt (provided here: https://blog.ssdnodes.com/blog/installing-nextcloud-docker/) BUT: it is difficult, because:
|
a clue! i think this setup with fpm and letsencrypt looks promising for resolving the issues above: thanks to @Mart1250 for pointing to the examples section of the repo! will try it out and post back if i can get it working! |
I have been able to get a working setup, but... Not really... Nextcloud works with https and onlyoffice is running in a container. I installed the onlyoffice app and have been able to connect to it with: http://onlyoffice-document-server/ Then you get the " |
Here is the config: https://github.com/Mart1250/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml Be aware, that I have changed the nextcloud storage location. I have removed the nextcloud volume in the nextcloud volume-section (at the end of the file) and used my own path. Offcourse you can change this back. Just set a SQL rootpassword and enter your host and email in the web section to satisfy letsencrypt. Make sure to edit the db.env file too. NOTE: Onlyoffice still doesnt work as it should. EDIT: The ports 8000 and 8080 listed are not required. I am testing what is the cause. EDIT: Don't know what i have done wrong, but i am now having the 500 error. Even after pruning everything from docker... |
@Mart1250 ... working on a setup that almost works... i can spin up nextcloud and onlyoffice just fine, and i can do the first step of creating a document, but then i get an odd error message that looks like this: |
here is my docker-compose: |
i am guessing that the trick seems to be getting the i am working on mashing up this conf from the official docker example repo: with this file from the onlyoffice repo we are posting in: currently i have this, which yields the above results: |
curious, do any of the maintainers have an idea as to the error that might be causing the above state? here is a message from the logs produced when the above modals appear:
|
perhaps @alexeybannov ? or @LinneyS |
Nice work! I was thinking too about those 2 files. Especially with that piece that talks about "/ds-vpath/ ". I didn't touch it because I thought I could just use the containername 'onlyoffice-document-server' to connect. The set_configuration.sh is useless then indeed. But good work, I have to admit that i don't really understand those 2 configs. |
The errors in the screenshot seems from the same nature. I am wondering if the port 8000 should be exposed, because the documentserver is listening on that port. Haven't got succes with it anyway. I will try your compose file tomorrow. |
@Mart1250 : good news! i figured out the problem. the working solution has 2 nginx proxies (one for the entire stack and handle ssl termination, the in the failed solution linked above, i mistakenly provided the top-level proxy ( |
here are links to working config files: |
would maintainers be willing to offer some variation on this as a PR? |
@aquestuser Nice job! Ok, didn't know about 2 proxies. Just thought there is one, the one called proxy in the compose file. I'm going to try it, but I have one question. I see you changed the files |
@Mart1250 sorry to take so long in responding! i refactored to use an env file for environment variables. (just one for the whole setup). here is an example version of that file: https://0xacab.org/team-friendo/nextcloud/blob/master/files/.env.example as for the other variables, they are all local variables and the (in particular, |
No problem. Thanks for your clarification @aguestuser! :) |
@aguestuser Hi I know its been quite a while since you worked on these files but I'm getting this error when running configure.sh after running docker compose.
|
As indicated in the instructions, the |
Hi thanks for the response. How do I get to the wizard using @aguestuser 's compose file? I went to the ip address of the server and could not find the nextcloud instance? |
Hello @jorge-aparicio, |
@jorge-aparicio hi! happy to try to help troubleshoot! but likely not until this weekend. admttedly i am a bit rusty on the ins and outs of these config scripts! :) |
Did any of you managed to do it properly ? Thanks |
I'm having some trouble setting up the Certbot with the docker. I'm not quite sure how to get the certificates for the Nextcloud and the OnlyOffice servers or integrate the certificates such that a client can connect with https. How can the SSL certificates be implemented?
The text was updated successfully, but these errors were encountered: