[Nginx] Reduce config duplication

It does not make sense having a seperate server block for both http
and https.
According to the nginx doc [1], using the same server block for both
should work.

[1] http://nginx.org/en/docs/http/configuring_https_servers.html#single_http_https_server
This commit is contained in:
Kristian Klausen
2018-02-15 20:22:02 +01:00
parent 0bfd0838c2
commit 63002cbb74
2 changed files with 4 additions and 179 deletions

View File

@@ -1,2 +1,2 @@
listen ${HTTPS_PORT} http2;
listen [::]:${HTTPS_PORT} http2;
listen ${HTTPS_PORT} ssl http2;
listen [::]:${HTTPS_PORT} ssl http2;