Commit b46744a8 authored by ale's avatar ale

Merge branch 'nginx-port' into 'master'

Allow running NGINX on a different (local) port

See merge request !99
parents 953ceed5 c120a18c
Pipeline #6195 failed with stages
in 2 minutes and 23 seconds
--- ---
dhparam_bits: 2048 dhparam_bits: 2048
# Ports that NGINX should bind to. Only change if you are setting
# up transparent proxies or other network-level trickery on frontends.
nginx_http_port: 80
nginx_https_port: 443
# How much memory to use for key caching in the proxy_cache. # How much memory to use for key caching in the proxy_cache.
nginx_cache_keys_mem: "64m" nginx_cache_keys_mem: "64m"
......
...@@ -9,7 +9,7 @@ map $http_host $top_level_domain_redirect { ...@@ -9,7 +9,7 @@ map $http_host $top_level_domain_redirect {
} }
server { server {
listen [::]:80 default_server ipv6only=off; listen [::]:{{ nginx_http_port }} default_server ipv6only=off;
server_name _; server_name _;
{# Only enable this if the 'acme' service is defined, {# Only enable this if the 'acme' service is defined,
...@@ -33,7 +33,7 @@ server { ...@@ -33,7 +33,7 @@ server {
} }
server { server {
listen [::]:443 http2 default_server ipv6only=off; listen [::]:{{ nginx_https_port }} http2 default_server ipv6only=off;
server_name _; server_name _;
ssl on; ssl on;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
{% macro config_vhost(endpoint, shard=None) %} {% macro config_vhost(endpoint, shard=None) %}
server { server {
listen [::]:443 http2; listen [::]:{{ nginx_https_port }} http2;
{% if endpoint.domains %} {% if endpoint.domains %}
server_name {{ endpoint.domains | join(' ') }}; server_name {{ endpoint.domains | join(' ') }};
{% else %} {% else %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment