[GH-ISSUE #55] Changing Listening Ports #52

Closed
opened 2026-02-26 05:33:55 +03:00 by kerem · 6 comments
Owner

Originally created by @jonny190 on GitHub (Jan 19, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/55

Is there a way to change the listening ports from 8080 and 4443 to 80 and 443?

Originally created by @jonny190 on GitHub (Jan 19, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/55 Is there a way to change the listening ports from 8080 and 4443 to 80 and 443?
kerem closed this issue 2026-02-26 05:33:55 +03:00
Author
Owner

@jc21 commented on GitHub (Jan 20, 2019):

Those ports are up you and your docker configuration. Furthermore, 8080 and 4443 are not the default ports provided in this app or the examples.

<!-- gh-comment-id:455908085 --> @jc21 commented on GitHub (Jan 20, 2019): Those ports are up you and your docker configuration. Furthermore, 8080 and 4443 are not the default ports provided in this app or the examples.
Author
Owner

@jonny190 commented on GitHub (Jan 20, 2019):

I'm using a macvlan so I can't change ports. Only reason I know if those
ports is from reading the config files

On Sun, 20 Jan 2019, 10:22 pm jc21 <notifications@github.com wrote:

Closed #55 https://github.com/jc21/nginx-proxy-manager/issues/55.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jc21/nginx-proxy-manager/issues/55#event-2085186097,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHr5v8-GL89e5K-utbWfeMRKqkH-RM_0ks5vFOwIgaJpZM4aJNma
.

<!-- gh-comment-id:455908236 --> @jonny190 commented on GitHub (Jan 20, 2019): I'm using a macvlan so I can't change ports. Only reason I know if those ports is from reading the config files On Sun, 20 Jan 2019, 10:22 pm jc21 <notifications@github.com wrote: > Closed #55 <https://github.com/jc21/nginx-proxy-manager/issues/55>. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/jc21/nginx-proxy-manager/issues/55#event-2085186097>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AHr5v8-GL89e5K-utbWfeMRKqkH-RM_0ks5vFOwIgaJpZM4aJNma> > . >
Author
Owner

@jc21 commented on GitHub (Jan 20, 2019):

If you're referring to this config file, that's only a development file and not to be used for production. The installation instructions specify the ports 80/443 in all examples. But still, you should still be in control of your docker execution. I don't understand that you can't change the ports, I don't use macvlan but if the docker image exposes 80/81/443 and if your docker runs without specifying any ports, they are the ports that will be used.

I feel that this problem you're having relates to any docker container and is not specific to this project.

<!-- gh-comment-id:455908791 --> @jc21 commented on GitHub (Jan 20, 2019): If you're referring to [this config file](https://github.com/jc21/nginx-proxy-manager/blob/master/docker-compose.yml), that's only a development file and not to be used for production. The [installation instructions](https://github.com/jc21/nginx-proxy-manager/blob/master/doc/INSTALL.md) specify the ports 80/443 in all examples. But still, you should still be in control of your docker execution. I don't understand that you can't change the ports, I don't use macvlan but if the docker image exposes 80/81/443 and if your docker runs without specifying any ports, they are the ports that will be used. I feel that this problem you're having relates to any docker container and is not specific to this project.
Author
Owner

@jonny190 commented on GitHub (Feb 16, 2019):

sorry for the delay in getting back to you. the docker composer file on hub.docker.com shows:
# Change the HTTPs port 443 to the unprivileged port 4443. sed-patch 's|listen 443 |listen 4443 |' /etc/nginx/conf.d/default.conf && \ sed-patch 's|listen 443 |listen 4443 |' /opt/nginx-proxy-manager/src/backend/templates/_listen.conf && \

and:
`

Expose ports.

- 8080: HTTP traffic

- 4443: HTTPs traffic

- 8181: Management web interface

EXPOSE 8080 4443 8181
`

can these not be configured to listen on the native 80 and 443?

<!-- gh-comment-id:464356135 --> @jonny190 commented on GitHub (Feb 16, 2019): sorry for the delay in getting back to you. the docker composer file on hub.docker.com shows: ` # Change the HTTPs port 443 to the unprivileged port 4443. sed-patch 's|listen 443 |listen 4443 |' /etc/nginx/conf.d/default.conf && \ sed-patch 's|listen 443 |listen 4443 |' /opt/nginx-proxy-manager/src/backend/templates/_listen.conf && \` and: ` # Expose ports. # - 8080: HTTP traffic # - 4443: HTTPs traffic # - 8181: Management web interface EXPOSE 8080 4443 8181 ` can these not be configured to listen on the native 80 and 443?
Author
Owner

@Matt-CyberGuy commented on GitHub (Apr 10, 2021):

I have the same question

<!-- gh-comment-id:817099785 --> @Matt-CyberGuy commented on GitHub (Apr 10, 2021): I have the same question
Author
Owner

@pwrsoft commented on GitHub (Oct 29, 2023):

Try to use this docker-compose.yml config file:

version: '3.8'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '8080:80'
- '8181:81'
- '4443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt

<!-- gh-comment-id:1784219729 --> @pwrsoft commented on GitHub (Oct 29, 2023): Try to use this docker-compose.yml config file: version: '3.8' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '8080:80' - '8181:81' - '4443:443' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#52
No description provided.