-
Notifications
You must be signed in to change notification settings - Fork 2
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
Proxy only works on ports 80 and 443 #1
Comments
Please see the doc: https://github.com/pini-gh/nginx-proxy#multiple-ports |
I assume I set that on the Collabora container and not the reverse proxy container? |
Yes. |
If I don't publish port 9980 on the nginx-proxy side then how will I proxy into the container from outside? My understanding is that the browser needs access to Collabora as well as the NextCloud container. I also tried setting the |
The nginx-proxy container should publish ports 80 and 443 only. I don't know about collabora/code, but if it exposes a http service on port 9980, then it should declare
|
It doesn't help. My setup file looks like this. I tried it both ways with the line that says:
done as
I also tried having this:
set to
|
The problem is that your nginx-proxy instance can't reach your collabora/code instance. You have to fix it. Have you checked that this container is actually up and running? |
Isn't it saying down because it is trying over port 80 and 443 and not 9980? |
Nope. You can check that against the related Go template part:
|
I've added a few debug statements to my template to outline what the problem could be. There are 3 cases:
Using |
@Ryu945 any news? |
@Ryu945, I'll close this ticket in 10 days if it doesn't evolve anymore. |
I'm going to try your examples to see if I can get 9980 to bind. I have been looking things up and I think it is related to some custom configuration that Collabora needs but I have not been able to get working. It is mentioned in this video. |
I've run a simple test with this Docker compose file:
Where
Note: I applied these settings into
as described in possibility number 2 'SSL terminates at the proxy' in this page. If you have difficulties configuring your collabora/code instance you may find some more valuable help on the Collabora support channels than here. |
I tried modifying the proxy configuration file located at |
Seriously, do you happen to read documentation? The file To set up a custom nginx configuration see https://github.com/pini-gh/nginx-proxy/tree/acme-challenge#custom-nginx-configuration. |
If that is the case then how is making a volume out of /etc/nginx/conf.d suppose to back up the container when I destroy it and rebuild it again? |
I don't understand what your point is. |
I thought the entire point of creating a volume at /etc/nginx/conf.d was so that when I delete a container, I can use the saved data for building a new container. If this is not the case then what area should I be backing up to save the proxy configuration in a volume? edit: I see, I need to add the file |
I'm glad you've been able to find this answer. Since the topic is not the original one anymore, and I've given you a detailed example answering the question, I'm closing this issue. |
I figured out one of the problems. Apparently, if you have Collabora on an internal network only then this NGINX container will set the upstream as
When it should be set as:
I think this may be an issue with the NGINX container itself. You mentioned earlier that down needed to be removed from that line but now we know why it is being added. Only when collabora is on an internal network and only an internal network does I found another issues I am trying to solve. When I put a file in either in |
This is nginx-proxy#1132. |
Do you know why configurations files aren't working like the guide said they should? edit: I wonder if it could be related to the fact I don't place the proxy.conf file in until after the container has run once. |
I guess it depends on what you want to define into proxy.conf. I didn't try this feature myself. I've just published a new release 0.7.0-pini3 which should fix the upstream issue regarding internal networks. |
When I setup Collabora with pini-gh / nginx-proxy and pini-gh / docker-letsencrypt-nginx-proxy-companion . I can get the certificate correctly but the reverse proxy only sets itself up on on port 80 and 443. When I had it publish on another port like 9980, it does not proxy to that port. Here is my file.
The text was updated successfully, but these errors were encountered: