Unverified Commit a4fc2207 authored by Logan Macdonald's avatar Logan Macdonald Committed by GitHub
Browse files

Added a new server block to handle incoming http request on port 8081.

Allow the server to redirect http connections over port 80:8081 to the desired port 443:8080. This is achieved by sending a 301 response along with the https URI.
parent 175da2c8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
# HTTP and HTTPS server blocks that proxy to the other containers running on this host
server {
  listen 8081 default_server;

    server_name _;

    return 301 https://$host$request_uri;
}

server {
    listen 8080 ssl http2 default_server;