how to allow additional inbound ssl ports? #2597
Replies: 5 comments 9 replies
-
I need to do the same thing. Haven't got it setup yet. A couple of notes:
Not sure how to do this. You have any luck? |
Beta Was this translation helpful? Give feedback.
-
@amy-langley @wkelton I don't think that what you want to do is currently possible with nginx-proxy (not 100% sure, I'll have to take a look at the code again), but it might intersect with an already asked for feature. Correct me if I'm wrong but from what I understood, you want to be able to tell nginx-proxy "for this specific proxied service, listen for https on port N instead of the default 443 port" ? |
Beta Was this translation helpful? Give feedback.
-
@buchdag thanks for replying! I think ideally, something like this: services:
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
- "443:443"
- "8448:8448"
...
synapse:
environment:
VIRTUAL_HOST_MULTIPORTS: |-
example.org:
"/":
port: 8448
host_https_port: 8448
matrix.example.org:
"/":
port: 8080 |
Beta Was this translation helpful? Give feedback.
-
I wonder if we can kind of hack it now with something like: services:
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
- "443:443"
- "8448:8448"
...
synapse:
environment:
VIRTUAL_HOST_MULTIPORTS: |-
example.org:
"/_unused": # just some path that isn't used
matrix.example.org:
"/":
port: 8080 And then add some conf.d for |
Beta Was this translation helpful? Give feedback.
-
I have found a resolution for my issue, but my solution is not particularly intellectually satisfying. I ended up doing the following: What I Did
Notes about my
|
Beta Was this translation helpful? Give feedback.
-
I am trying to set up a Matrix server called
synapse
. Matrix federation wants to use port8448
. On my VPS, I want to accept inbound SSL traffic on port443
for all containers, but additionally on port8448
just for my matrix container. How can I accomplish this? Following the docs, I attempted to add container-specific configin
/etc/nginx/vhost.d/matrix.my-domain.com
, but this didn't work. I then thought I would try to make it work as a proxy-wide setting so I added the following as/etc/nginx/conf.d/matrix-extra.conf
:but this did not work either--the requests in either case time out at the client side and are not even logged by nginx according to the container logs.
Is there a setting to do what I'm trying to do more easily? If not, can anyone suggest what I'm doing wrong? I'm not particularly experienced with nginx config, which is why I was excited to use this project.
Beta Was this translation helpful? Give feedback.
All reactions