Skip to content

Commit bd1438c

Browse files
authored
Specify ssl on nginx listen (#364)
1 parent 6fc0320 commit bd1438c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/nginx/nginx.conf.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ http {
111111
{% if env.debug %}
112112
listen 127.0.0.1:{{ ports.app }};
113113
{% else %}
114+
{% if server.ssl %}
115+
listen {{ ports.app }} ssl;
116+
{% else %}
114117
listen {{ ports.app }};
118+
{% endif %}
115119
listen {{ ports.app_http_proxy }} proxy_protocol; # This is for AWS Elastic Load Balancer
116120
{% endif %}
117121
client_max_body_size {{ server.max_body_size }}M;

0 commit comments

Comments
 (0)