-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose http ports also when SSL is configured (#192)
This patch changes the nginx configuration to always listen for http requests on port 8000 and forward them to the upstream package server. In addition, the docker compose configuration is changed to map port 8001 on the host to port 8000 in the container. This make it possible to bypass nginx and connect directly to the package server. To make use of these ports one needs to be on tailnet or use SSH port forwarding. In the standard configuration ports 8000 and 8001 are both blocked by the firewall so there are no plain http ports exposed to the public.
- Loading branch information
1 parent
6c2b1ad
commit 6df690d
Showing
4 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
listen 8000; | ||
listen [::]:8000; | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name ${SERVERNAMES}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters