File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11---
22
33vitamui_reverse_external_protocol : https
4+ reverse_proxy_port : " {{ 443 if vitamui_reverse_external_protocol | lower == 'https' else 80 }}"
45reverse_connection_params : " acquire=5000 connectiontimeout=300 timeout=600 retry=5"
56
67assets_path : " {{ vitamui_defaults.folder.root_path }}/conf/assets"
Original file line number Diff line number Diff line change 2929 - reverse.key
3030 - dhparam.pem
3131 notify : reload nginx
32+ when : vitamui_reverse_external_protocol | lower == 'https'
3233
3334- name : Ensure nginx is started
3435 systemd :
Original file line number Diff line number Diff line change 1- <VirtualHost {{ ip_service }}:{{ reverse_proxy_port | default(443) }}>
1+ <VirtualHost {{ ip_service }}:{{ reverse_proxy_port }}>
22
3- {% if vitamui_reverse_external_protocol | default('https') | lower == 'https' %}
3+ {% if vitamui_reverse_external_protocol | lower == 'https' %}
44 SSLEngine on
55 SSLCertificateFile /etc/{{ apache_service }}/certs/reverse.crt
66 SSLCertificateKeyFile /etc/{{ apache_service }}/certs/reverse.key
Original file line number Diff line number Diff line change 11#jinja2: lstrip_blocks: True
22server {
33
4- listen {{ ip_service }}:443 ssl;
4+ {% if vitamui_reverse_external_protocol | lower == 'https' %}
5+ listen {{ ip_service }}:{{ reverse_proxy_port }} ssl;
56 include {{ nginx_ssl_dir }}/ssl.conf;
7+ {% else %}
8+ listen {{ ip_service }}:{{ reverse_proxy_port }};
9+ {% endif %}
610
711 server_name {{ vitamui_reverse_external_dns }};
812
You can’t perform that action at this time.
0 commit comments